mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +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:
		@@ -596,6 +596,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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user