postgresql/src/backend
Amit Kapila 40b1491357 Fix incorrect output from pgoutput when using column lists.
For Updates and Deletes, we were not honoring the columns list for old
tuple values while sending tuple data via pgoutput. This results in
pgoutput emitting more columns than expected.

This is not a problem for built-in logical replication as we simply ignore
additional columns based on the relation information sent previously which
didn't have those columns. However, some other users of pgoutput plugin
may expect the columns as per the column list. Also, sending extra columns
unnecessarily consumes network bandwidth defeating the purpose of the
column list feature.

Reported-by: Gunnar Morling
Author: Hou Zhijie
Reviewed-by: Amit Kapila
Backpatch-through: 15
Discussion: https://postgr.es/m/CADGJaX9kiRZ-OH0EpWF5Fkyh1ZZYofoNRCrhapBfdk02tj5EKg@mail.gmail.com
2022-12-02 10:52:58 +05:30
..
access Fix memory leak for hashing with nondeterministic collations. 2022-12-01 11:49:15 -08:00
backup Rename shadowed local variables 2022-10-05 21:01:41 +13:00
bootstrap Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
catalog Add 'missing_ok' argument to build_attrmap_by_name 2022-11-29 09:39:36 +01:00
commands Add 'missing_ok' argument to build_attrmap_by_name 2022-11-29 09:39:36 +01:00
executor Move PartitioPruneInfo out of plan nodes into PlannedStmt 2022-12-01 12:56:21 +01:00
foreign Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:35 +09:00
jit Replace SQLValueFunction by COERCE_SQL_SYNTAX 2022-11-21 18:31:59 +09:00
lib Add doubly linked count list implementation 2022-11-02 14:06:05 +13:00
libpq Fix typo in hba.c 2022-11-26 10:14:18 +09:00
main Add workaround to make ubsan and ps_status.c compatible 2022-11-21 13:56:23 -08:00
nodes Fix gen_node_support.pl for changed AclMode size 2022-11-25 08:55:56 -05:00
optimizer Move PartitioPruneInfo out of plan nodes into PlannedStmt 2022-12-01 12:56:21 +01:00
parser Add 'missing_ok' argument to build_attrmap_by_name 2022-11-29 09:39:36 +01:00
partitioning Move PartitioPruneInfo out of plan nodes into PlannedStmt 2022-12-01 12:56:21 +01:00
po meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
port Provide sigaction() for Windows. 2022-11-09 13:06:31 +13:00
postmaster Add the database name to the ps display of logical WAL senders 2022-11-24 16:07:59 +09:00
regex Remove uses of register due to incompatibility with C++17 and up 2022-09-24 12:08:37 -07:00
replication Fix incorrect output from pgoutput when using column lists. 2022-12-02 10:52:58 +05:30
rewrite Stop accessing checkAsUser via RTE in some cases 2022-11-30 12:07:03 +01:00
snowball meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
statistics Stop accessing checkAsUser via RTE in some cases 2022-11-30 12:07:03 +01:00
storage Make materialized views participate in predicate locking 2022-12-01 15:41:13 +09:00
tcop Refactor aclcheck functions 2022-11-13 09:02:41 +01:00
tsearch Add comments and a missing CHECK_FOR_INTERRUPTS in ts_headline. 2022-11-21 17:07:29 -05:00
utils Fix memory leak for hashing with nondeterministic collations. 2022-12-01 11:49:15 -08:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile autoconf: Don't AC_SUBST() LD in configure 2022-12-01 19:03:26 -08:00
meson.build meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
nls.mk NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00