postgresql/src/include/replication
Peter Eisentraut c314c147c0 Prepare to support non-tables in publications
This by itself doesn't change any functionality but prepares the way
for having relations other than base tables in publications.

Make arrangements for COPY handling the initial table sync.  For
non-tables we have to use COPY (SELECT ...) instead of directly
copying from the table, but then we have to take care to omit
generated columns from the column list.

Also, remove a hardcoded reference to relkind = 'r' and rely on the
publisher to send only what it can actually publish, which will be
correct even in future cross-version scenarios.

Reviewed-by: Amit Langote <amitlangote09@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CA+HiwqH=Y85vRK3mOdjEkqFK+E=ST=eQiHdpj43L=_eJMOOznQ@mail.gmail.com
2020-03-19 08:25:07 +01:00
..
basebackup.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
decode.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logical.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicallauncher.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicalproto.h Prepare to support non-tables in publications 2020-03-19 08:25:07 +01:00
logicalrelation.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
logicalworker.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
message.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
origin.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
output_plugin.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pgoutput.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
reorderbuffer.h Set ReorderBufferTXN->final_lsn more eagerly 2020-01-17 18:00:39 -03:00
slot.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
snapbuild.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
syncrep.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
walreceiver.h walreceiver uses a temporary replication slot by default 2020-01-14 14:40:41 +01:00
walsender.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
walsender_private.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
worker_internal.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00