Skip to content

Commit b2f95c3

Browse files
committed
Mark views created from tables as replication identity 'nothing'
pg_dump turns tables into views using a method that was not setting pg_class.relreplident properly. Patch by Marko Tiikkaja Backpatch through 9.4
1 parent e044a44 commit b2f95c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/rewrite/rewriteDefine.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ DefineQueryRewrite(char *rulename,
597597
classForm->relhaspkey = false;
598598
classForm->relfrozenxid = InvalidTransactionId;
599599
classForm->relminmxid = InvalidMultiXactId;
600+
classForm->relreplident = REPLICA_IDENTITY_NOTHING;
600601

601602
simple_heap_update(relationRelation, &classTup->t_self, classTup);
602603
CatalogUpdateIndexes(relationRelation, classTup);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy