]> granicus.if.org Git - postgresql/commit
Fix handling of temp and unlogged tables in FOR ALL TABLES publications
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 16 Apr 2019 08:37:44 +0000 (10:37 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 18 Apr 2019 06:56:32 +0000 (08:56 +0200)
commitf993bacdea7a8e8ebd9806f82302b18fb5eef71b
tree92f7f66097b810bee254679fd7f2feecef7e998a
parente13b6a4387a8d7241ee6ee23701069c4053f073c
Fix handling of temp and unlogged tables in FOR ALL TABLES publications

If a FOR ALL TABLES publication exists, temporary and unlogged tables
are ignored for publishing changes.  But CheckCmdReplicaIdentity()
would still check in that case that such a table has a replica
identity set before accepting updates.  To fix, have
GetRelationPublicationActions() return that such a table publishes no
actions.

Discussion: https://www.postgresql.org/message-id/f3f151f7-c4dd-1646-b998-f60bd6217dd3@2ndquadrant.com
src/backend/utils/cache/relcache.c
src/test/subscription/t/100_bugs.pl