Fix handling of temp and unlogged tables in FOR ALL TABLES publications
Peter Eisentraut <peter@eisentraut.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/cache/relcache.c | modified | +7 −0 |
| src/test/subscription/t/100_bugs.pl | modified | +36 −1 |
Discussion
- Fix handling of unlogged tables in FOR ALL TABLES publications 7 messages · 2019-03-13 → 2019-04-18