postgresql/src/backend/commands
Amit Kapila 9eff859326 Invalidate all partitions for a partitioned table in publication.
Updates/Deletes on a partition were allowed even without replica identity
after the parent table was added to a publication. This would later lead
to an error on subscribers. The reason was that we were not invalidating
the partition's relcache and the publication information for partitions
was not getting rebuilt. Similarly, we were not invalidating the
partitions' relcache after dropping a partitioned table from a publication
which will prohibit Updates/Deletes on its partition without replica
identity even without any publication.

Reported-by: Haiying Tang
Author: Hou Zhijie and Vignesh C
Reviewed-by: Vignesh C and Amit Kapila
Backpatch-through: 13
Discussion: https://postgr.es/m/OS0PR01MB6113D77F583C922F1CEAA1C3FBD29@OS0PR01MB6113.jpnprd01.prod.outlook.com
2021-09-22 08:13:37 +05:30
..
aggregatecmds.c SQL-standard function body 2021-04-07 21:47:55 +02:00
alter.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
amcmds.c Fix some typos, grammar and style in docs and comments 2021-02-24 16:13:17 +09:00
analyze.c Keep stats up to date for partitioned tables 2021-08-28 15:58:23 -04:00
async.c Send NOTIFY signals during CommitTransaction. 2021-09-14 17:18:25 -04:00
cluster.c Fix toast rewrites in logical decoding. 2021-08-25 10:10:50 +05:30
collationcmds.c Disallow creating an ICU collation if the DB encoding won't support it. 2021-09-03 16:39:04 -04:00
comment.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
constraint.c Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
conversioncmds.c Add 'noError' argument to encoding conversion functions. 2021-04-01 11:45:22 +03:00
copy.c Rename Default Roles to Predefined Roles 2021-04-01 15:32:06 -04:00
copyfrom.c Fix typos and grammar in documentation and code comments 2021-04-09 13:53:07 +09:00
copyfromparse.c Add heuristic incoming-message-size limits in the server. 2021-04-28 15:50:46 -04:00
copyto.c Centralize the logic for protective copying of utility statements. 2021-06-18 11:22:58 -04:00
createas.c Centralize the logic for protective copying of utility statements. 2021-06-18 11:22:58 -04:00
dbcommands.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
define.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
discard.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
dropcmds.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
event_trigger.c Improve handling of dropped objects in pg_event_trigger_ddl_commands() 2021-06-14 14:57:22 +09:00
explain.c Use ExplainPropertyInteger for queryid in EXPLAIN 2021-08-09 15:46:28 +12:00
extension.c Lock the extension during ALTER EXTENSION ADD/DROP. 2021-07-11 12:54:24 -04:00
foreigncmds.c Centralize the logic for protective copying of utility statements. 2021-06-18 11:22:58 -04:00
functioncmds.c Fix misevaluation of STABLE parameters in CALL within plpgsql. 2021-09-21 19:06:54 -04:00
indexcmds.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
lockcmds.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Split copy.c into four files. 2020-11-23 10:50:50 +02:00
matview.c Really fix the ambiguity in REFRESH MATERIALIZED VIEW CONCURRENTLY. 2021-08-07 13:29:32 -04:00
opclasscmds.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
operatorcmds.c Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -04:00
policy.c Remove unnecessary failure cases in RemoveRoleFromObjectPolicy(). 2021-06-25 13:59:38 -04:00
portalcmds.c Fix some anomalies with NO SCROLL cursors. 2021-09-10 13:18:32 -04:00
prepare.c Centralize the logic for protective copying of utility statements. 2021-06-18 11:22:58 -04:00
proclang.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
publicationcmds.c Invalidate all partitions for a partitioned table in publication. 2021-09-22 08:13:37 +05:30
schemacmds.c Centralize the logic for protective copying of utility statements. 2021-06-18 11:22:58 -04:00
seclabel.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
sequence.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
statscmds.c Disallow extended statistics on system columns 2021-09-20 00:45:29 +02:00
subscriptioncmds.c Fix Alter Subscription's Add/Drop Publication behavior. 2021-08-24 08:38:11 +05:30
tablecmds.c Fix toast rewrites in logical decoding. 2021-08-25 10:10:50 +05:30
tablespace.c Fix data loss in wal_level=minimal crash recovery of CREATE TABLESPACE. 2021-08-27 23:33:27 -07:00
trigger.c Preserve firing-on state when cloning row triggers to partitions 2021-07-16 13:01:43 -04:00
tsearchcmds.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
typecmds.c Message style improvements 2021-09-16 15:36:58 +02:00
user.c Standardize pg_authid oid_symbol values. 2021-04-10 12:01:41 -07:00
vacuum.c Support disabling index bypassing by VACUUM. 2021-06-18 20:04:07 -07:00
variable.c Fix some inappropriately-disallowed uses of ALTER ROLE/DATABASE SET. 2021-04-13 15:10:18 -04:00
view.c Centralize the logic for protective copying of utility statements. 2021-06-18 11:22:58 -04:00