Fix replication with replica identity full

The comparison with the target rows on the subscriber side was done with
datumIsEqual(), which can have false negatives.  For instance, it didn't
work reliably for text columns.  So use the equality operator provided
by the type cache instead.

Also add more user documentation about replica identity requirements.

Reported-by: Tatsuo Ishii <[email protected]>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/08859bb5c2cebc132629ca838113d27bb31b990c

Modified Files
--------------
doc/src/sgml/logical-replication.sgml      | 28 +++++++++++++++++++++++-----
src/backend/executor/execReplication.c     | 19 ++++++++++++++++---
src/test/subscription/t/001_rep_changes.pl | 23 ++++++++++++++++++++---
3 files changed, 59 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to