pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi
Date: Thu, 18 Apr 2019 08:13:08 +0000
Message-ID: <E1hH2AO-0004os-Lf@gemulon.postgresql.org> (raw)

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_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/05d151e1382b969a618491486778a349a4857d9a

Modified Files
--------------
src/backend/utils/cache/relcache.c  |  7 +++++++
src/test/subscription/t/100_bugs.pl | 37 ++++++++++++++++++++++++++++++++++++-
2 files changed, 43 insertions(+), 1 deletion(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1hH2AO-0004os-Lf@gemulon.postgresql.org>
Permalink:  ../E1hH2AO-0004os-Lf@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hH2AO-0004os-Lf@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi
  In-Reply-To: <E1hH2AO-0004os-Lf@gemulon.postgresql.org>
  References: <E1hH2AO-0004os-Lf@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox