mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	Allow insert and update tuple routing and COPY for foreign tables.
Also enable this for postgres_fdw. Etsuro Fujita, based on an earlier patch by Amit Langote. The larger patch series of which this is a part has been reviewed by Amit Langote, David Fetter, Maksim Milyutin, Álvaro Herrera, Stephen Frost, and me. Minor documentation changes to the final version by me. Discussion: http://postgr.es/m/29906a26-da12-8c86-4fb9-d8f88442f2b9@lab.ntt.co.jp
This commit is contained in:
		| @@ -119,6 +119,11 @@ extern ResultRelInfo *ExecInitPartitionInfo(ModifyTableState *mtstate, | ||||
| 					ResultRelInfo *resultRelInfo, | ||||
| 					PartitionTupleRouting *proute, | ||||
| 					EState *estate, int partidx); | ||||
| extern void ExecInitRoutingInfo(ModifyTableState *mtstate, | ||||
| 					EState *estate, | ||||
| 					PartitionTupleRouting *proute, | ||||
| 					ResultRelInfo *partRelInfo, | ||||
| 					int partidx); | ||||
| extern void ExecSetupChildParentMapForLeaf(PartitionTupleRouting *proute); | ||||
| extern TupleConversionMap *TupConvMapForLeaf(PartitionTupleRouting *proute, | ||||
| 				  ResultRelInfo *rootRelInfo, int leaf_index); | ||||
| @@ -126,6 +131,7 @@ extern HeapTuple ConvertPartitionTupleSlot(TupleConversionMap *map, | ||||
| 						  HeapTuple tuple, | ||||
| 						  TupleTableSlot *new_slot, | ||||
| 						  TupleTableSlot **p_my_slot); | ||||
| extern void ExecCleanupTupleRouting(PartitionTupleRouting *proute); | ||||
| extern void ExecCleanupTupleRouting(ModifyTableState *mtstate, | ||||
| 						PartitionTupleRouting *proute); | ||||
|  | ||||
| #endif							/* EXECPARTITION_H */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user