1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-09 22:41:56 +03:00

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
This commit is contained in:
Bruce Momjian
2015-05-01 13:03:23 -04:00
parent e044a44949
commit b2f95c34f4

View File

@ -597,6 +597,7 @@ DefineQueryRewrite(char *rulename,
classForm->relhaspkey = false; classForm->relhaspkey = false;
classForm->relfrozenxid = InvalidTransactionId; classForm->relfrozenxid = InvalidTransactionId;
classForm->relminmxid = InvalidMultiXactId; classForm->relminmxid = InvalidMultiXactId;
classForm->relreplident = REPLICA_IDENTITY_NOTHING;
simple_heap_update(relationRelation, &classTup->t_self, classTup); simple_heap_update(relationRelation, &classTup->t_self, classTup);
CatalogUpdateIndexes(relationRelation, classTup); CatalogUpdateIndexes(relationRelation, classTup);