pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi
3+ messages / 1 participants
[nested] [flat]

* pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi
@ 2019-04-18 08:13  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2019-04-18 08:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.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

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi
@ 2019-04-18 08:13  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2019-04-18 08:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.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

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi
@ 2019-04-18 08:13  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2019-04-18 08:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bb385c4fb0f4eb33d2bc7e484061565ba51cc790

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-04-18 08:13 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18 08:13 pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi Peter Eisentraut <peter@eisentraut.org>
2019-04-18 08:13 pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi Peter Eisentraut <peter@eisentraut.org>
2019-04-18 08:13 pgsql: Fix handling of temp and unlogged tables in FOR ALL TABLES publi Peter Eisentraut <peter@eisentraut.org>

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