| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi |
| Date: | 2019-04-18 08:13:08 |
| Message-ID: | E1hH2AO-0004or-LS@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f993bacdea7a8e8ebd9806f82302b18fb5eef71b
Modified Files
--------------
src/backend/utils/cache/relcache.c | 7 +++++++
src/test/subscription/t/100_bugs.pl | 37 ++++++++++++++++++++++++++++++++++++-
2 files changed, 43 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2019-04-18 19:41:37 | Re: pgsql: Fix plan created for inherited UPDATE/DELETE with all tables exc |
| Previous Message | Amit Langote | 2019-04-18 02:42:49 | Re: pgsql: Fix plan created for inherited UPDATE/DELETE with all tables exc |