Mark views created from tables as replication identity 'nothing'
authorBruce Momjian
Fri, 1 May 2015 17:03:23 +0000 (13:03 -0400)
committerBruce Momjian
Fri, 1 May 2015 17:03:23 +0000 (13:03 -0400)
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

index 660d06934606aabf314aaf1a87413ff38871b64e..541bc4d779833cb64bb159212af4c85b3a165b0f 100644 (file)
@@ -596,6 +596,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);