postgresql/src/include/parser
Peter Eisentraut 4a97f647dd 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
2020-02-17 15:21:12 +01:00
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
analyze.h Fill in extraUpdatedCols in logical replication 2020-02-17 15:21:12 +01:00
gramparse.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
kwlist.h Generated columns 2019-03-30 08:15:57 +01:00
parse_agg.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_clause.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_coerce.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_collate.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
parse_cte.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_enr.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
parse_expr.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
parse_func.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_node.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_oper.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_param.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_relation.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_target.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parse_type.h Require the schema qualification in pg_temp.type_name(arg). 2019-08-05 07:48:45 -07:00
parse_utilcmd.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parser.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
parsetree.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
scanner.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
scansup.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00