postgresql/src/backend/catalog
Amit Kapila 8db27fbc11 Invalidate relcache for publications defined for all tables.
Updates/Deletes on a relation were allowed even without replica identity
after we define the publication for all tables. This would later lead to
an error on subscribers. The reason was that for such publications we were
not invalidating the relcache and the publication information for
relations was not getting rebuilt. Similarly, we were not invalidating the
relcache after dropping of such publications which will prohibit
Updates/Deletes without replica identity even without any publication.

Author: Vignesh C and Hou Zhijie
Reviewed-by: Hou Zhijie, Kyotaro Horiguchi, Amit Kapila
Backpatch-through: 10, where it was introduced
Discussion: https://postgr.es/m/CALDaNm0pF6zeWqCA8TCe2sDuwFAy8fCqba=nHampCKag-qLixg@mail.gmail.com
2021-09-08 12:08:29 +05:30
..
.gitignore Build in some knowledge about foreign-key relationships in the catalogs. 2021-02-02 17:11:55 -05:00
aclchk.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
catalog.c Message style improvements 2021-06-28 08:36:44 +02:00
Catalog.pm Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
dependency.c Invalidate relcache for publications defined for all tables. 2021-09-08 12:08:29 +05:30
genbki.pl Pre branch pgindent / pgperltidy run 2021-06-28 11:05:54 -04:00
heap.c Pre branch pgindent / pgperltidy run 2021-06-28 11:05:54 -04:00
index.c Re-order pg_attribute columns to eliminate some padding space. 2021-05-23 12:12:09 -04:00
indexing.c Fix comment in indexing.c 2021-03-17 18:07:00 +09:00
information_schema.sql Add DISTINCT to information schema usage views 2021-04-21 11:54:47 +02:00
Makefile Split function definitions out of system_views.sql into a new file. 2021-04-16 18:37:02 -04:00
namespace.c Reconsider the handling of procedure OUT parameters. 2021-06-10 17:11:36 -04:00
objectaccess.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
objectaddress.c Fix lookup error in extended stats ownership check 2021-08-31 18:36:06 +02:00
partition.c ALTER TABLE ... DETACH PARTITION ... CONCURRENTLY 2021-03-25 18:00:28 -03:00
pg_aggregate.c Reconsider the handling of procedure OUT parameters. 2021-06-10 17:11:36 -04:00
pg_cast.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_collation.c Revert per-index collation version tracking feature. 2021-05-07 21:10:11 +12:00
pg_constraint.c Revert per-index collation version tracking feature. 2021-05-07 21:10:11 +12:00
pg_conversion.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_db_role_setting.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_depend.c Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -04:00
pg_enum.c Rename "enum blacklist" to "uncommitted enums". 2021-01-05 12:38:48 +13:00
pg_inherits.c Message style improvements 2021-06-28 08:36:44 +02:00
pg_largeobject.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_namespace.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_operator.c Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -04:00
pg_proc.c Fix missed lock acquisition while inlining new-style SQL functions. 2021-08-31 12:02:36 -04:00
pg_publication.c Add macro RelationIsPermanent() to report relation permanence 2021-03-22 20:23:52 -04:00
pg_range.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_shdepend.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
pg_subscription.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
pg_type.c Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -04:00
sql_feature_packages.txt Cleanup in SQL features files 2020-03-28 08:46:18 +01:00
sql_features.txt Fix use of cursor sensitivity terminology 2021-04-07 08:05:55 +02:00
storage.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
system_functions.sql Remove pg_wait_for_backend_termination(). 2021-06-14 17:29:37 -07:00
system_views.sql Fix incorrect permissions on pg_subscription. 2021-06-03 14:54:06 -04:00
toasting.c Fix toast rewrites in logical decoding. 2021-08-25 10:10:50 +05:30