pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fill in extraUpdatedCols in logical replication 2+ messages / 1 participants [nested] [flat]
* pgsql: Fill in extraUpdatedCols in logical replication @ 2020-02-17 15:14 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2020-02-17 15:14 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fill in extraUpdatedCols in logical replication The extraUpdatedCols field of the target RTE records which generated columns are affected by an update. This is used in a variety of places, including per-column triggers and foreign data wrappers. When an update was initiated by a logical replication subscription, this field was not filled in, so such an update would not affect generated columns in a way that is consistent with normal updates. To fix, factor out some code from analyze.c to fill in extraUpdatedCols in the logical replication worker as well. Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/b05e781a-fa16-6b52-6738-761181204567@2ndquadrant.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ad3ae64770e5b4391ad07fb2a689d72aa45b4689 Modified Files -------------- src/backend/parser/analyze.c | 18 ++++++++++++------ src/backend/replication/logical/worker.c | 3 +++ src/include/parser/analyze.h | 2 ++ 3 files changed, 17 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fill in extraUpdatedCols in logical replication @ 2020-02-17 15:14 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2020-02-17 15:14 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fill in extraUpdatedCols in logical replication The extraUpdatedCols field of the target RTE records which generated columns are affected by an update. This is used in a variety of places, including per-column triggers and foreign data wrappers. When an update was initiated by a logical replication subscription, this field was not filled in, so such an update would not affect generated columns in a way that is consistent with normal updates. To fix, factor out some code from analyze.c to fill in extraUpdatedCols in the logical replication worker as well. Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/b05e781a-fa16-6b52-6738-761181204567@2ndquadrant.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4a97f647ddbc79af2fb91727d4a2502ce667d0fd Modified Files -------------- src/backend/parser/analyze.c | 18 ++++++++++++------ src/backend/replication/logical/worker.c | 3 +++ src/include/parser/analyze.h | 2 ++ 3 files changed, 17 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-02-17 15:14 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-02-17 15:14 pgsql: Fill in extraUpdatedCols in logical replication Peter Eisentraut <peter@eisentraut.org> 2020-02-17 15:14 pgsql: Fill in extraUpdatedCols in logical replication Peter Eisentraut <peter@eisentraut.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox