postgres.git / summary / log / commit / refs
commit b2f95c34f4e6ab1585af6f10d9d1351978ef15f7
Author: Bruce Momjian <bruce@momjian.us>
Date: Fri May 01 17:03:23 2015 +0000
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
src/backend/rewrite/rewriteDefine.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/backend/rewrite/rewriteDefine.c b/src/backend/rewrite/rewriteDefine.c
index f540432ccbc..a88d73e15f2 100644
--- a/src/backend/rewrite/rewriteDefine.c
+++ b/src/backend/rewrite/rewriteDefine.c
@@ -597,6 +597,7 @@ DefineQueryRewrite(char *rulename,
classForm->relhaspkey = false;
classForm->relfrozenxid = InvalidTransactionId;
classForm->relminmxid = InvalidMultiXactId;
+ classForm->relreplident = REPLICA_IDENTITY_NOTHING;
simple_heap_update(relationRelation, &classTup->t_self, classTup);
CatalogUpdateIndexes(relationRelation, classTup);
[parent: e044a44949c5]