Raise a warning if there is a possibility of data from multiple origins.
authorAmit Kapila <akapila@postgresql.org>
Thu, 8 Sep 2022 01:24:13 +0000 (06:54 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 8 Sep 2022 01:24:13 +0000 (06:54 +0530)
commit875693019053b8897ec3983e292acbb439b088c3
tree75653604d83cb6339de29e5d697cae6f840820cc
parent4b4663fb4a704b7a145ed6ec018b1f0c116eeb6b
Raise a warning if there is a possibility of data from multiple origins.

This commit raises a warning message for a combination of options
('copy_data = true' and 'origin = none') during CREATE/ALTER subscription
operations if the publication tables were also replicated from other
publishers.

During replication, we can skip the data from other origins as we have that
information in WAL but that is not possible during initial sync so we raise
a warning if there is such a possibility.

Author: Vignesh C
Reviewed-By: Peter Smith, Amit Kapila, Jonathan Katz, Shi yu, Wang wei
Discussion: https://www.postgresql.org/message-id/CALDaNm0gwjY_4HFxvvty01BOT01q_fJLKQ3pWP9=9orqubhjcQ@mail.gmail.com
doc/src/sgml/ref/alter_subscription.sgml
doc/src/sgml/ref/create_subscription.sgml
src/backend/commands/subscriptioncmds.c
src/test/subscription/t/030_origin.pl