gooderp18绿色标准版
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

24 líneas
3.7KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>30.3. Conflicts</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="logical-replication-subscription.html" title="30.2. Subscription" /><link rel="next" href="logical-replication-restrictions.html" title="30.4. Restrictions" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">30.3. Conflicts</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="logical-replication-subscription.html" title="30.2. Subscription">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="logical-replication.html" title="Chapter 30. Logical Replication">Up</a></td><th width="60%" align="center">Chapter 30. Logical Replication</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="logical-replication-restrictions.html" title="30.4. Restrictions">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="LOGICAL-REPLICATION-CONFLICTS"><div class="titlepage"><div><div><h2 class="title" style="clear: both">30.3. Conflicts</h2></div></div></div><p>
  3. Logical replication behaves similarly to normal DML operations in that
  4. the data will be updated even if it was changed locally on the subscriber
  5. node. If incoming data violates any constraints the replication will
  6. stop. This is referred to as a <em class="firstterm">conflict</em>. When
  7. replicating <code class="command">UPDATE</code> or <code class="command">DELETE</code>
  8. operations, missing data will not produce a conflict and such operations
  9. will simply be skipped.
  10. </p><p>
  11. A conflict will produce an error and will stop the replication; it must be
  12. resolved manually by the user. Details about the conflict can be found in
  13. the subscriber's server log.
  14. </p><p>
  15. The resolution can be done either by changing data on the subscriber so
  16. that it does not conflict with the incoming change or by skipping the
  17. transaction that conflicts with the existing data. The transaction can be
  18. skipped by calling the <a class="link" href="functions-admin.html#PG-REPLICATION-ORIGIN-ADVANCE">
  19. <code class="function">pg_replication_origin_advance()</code></a> function with
  20. a <em class="parameter"><code>node_name</code></em> corresponding to the subscription name,
  21. and a position. The current position of origins can be seen in the
  22. <a class="link" href="view-pg-replication-origin-status.html" title="51.80. pg_replication_origin_status">
  23. <code class="structname">pg_replication_origin_status</code></a> system view.
  24. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="logical-replication-subscription.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="logical-replication.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="logical-replication-restrictions.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">30.2. Subscription </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 30.4. Restrictions</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1