]> 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 07:58:21 +0000 (09:58 +0200)
commit05d151e1382b969a618491486778a349a4857d9a
treecf6520a611fd1673a8a662b79e428c30220f9104
parentfea2cab70de8d190762996c7c447143fb47bcfa3
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