git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f4ae722) | patch
Fill in extraUpdatedCols in logical replication
2020年2月17日 14:19:58 +0000 (15:19 +0100)
2020年2月17日 14:20:57 +0000 (15:20 +0100)
commit ad3ae64770e5b4391ad07fb2a689d72aa45b4689
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
src/backend/parser/analyze.c diff | blob | blame | history
src/backend/replication/logical/worker.c diff | blob | blame | history
src/include/parser/analyze.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /