mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Add the notion of REPLICA IDENTITY for a table.
Pending patches for logical replication will use this to determine which columns of a tuple ought to be considered as its candidate key. Andres Freund, with minor, mostly cosmetic adjustments by me
This commit is contained in:
		@@ -110,6 +110,13 @@ typedef struct RelationData
 | 
			
		||||
	MemoryContext rd_rulescxt;	/* private memory cxt for rd_rules, if any */
 | 
			
		||||
	TriggerDesc *trigdesc;		/* Trigger info, or NULL if rel has none */
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * The index chosen as the relation's replication identity or
 | 
			
		||||
	 * InvalidOid. Only set correctly if RelationGetIndexList has been
 | 
			
		||||
	 * called/rd_indexvalid > 0.
 | 
			
		||||
	 */
 | 
			
		||||
	Oid rd_replidindex;
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * rd_options is set whenever rd_rel is loaded into the relcache entry.
 | 
			
		||||
	 * Note that you can NOT look into rd_rel for this data.  NULL means "use
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user