pgsql: Fill in extraUpdatedCols in logical replication

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fill in extraUpdatedCols in logical replication
Дата
Msg-id E1j3i66-0002Na-Vs@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Add description about GSSOpenServer wait event into document.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Optimize update of tables with generated columns