aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-03-19 08:17:50 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-03-19 08:25:07 +0100
commitc314c147c0563c9758bdad988ffda8d64daa2db6 (patch)
treef4d6f667e968a47bb9c73ac3803360063405e8b3 /src/backend/utils/adt/json.c
parent1d253bae57fcb3e75cdd9cdb2592c5b09cf7e7b7 (diff)
downloadpostgresql-c314c147c0563c9758bdad988ffda8d64daa2db6.tar.gz
postgresql-c314c147c0563c9758bdad988ffda8d64daa2db6.zip
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
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions