mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
Fix transition tables for partition/inheritance.
We disallow row-level triggers with transition tables on child tables. Transition tables for triggers on the parent table contain only those columns present in the parent. (We can't mix tuple formats in a single transition table.) Patch by Thomas Munro Discussion: https://postgr.es/m/CA%2BTgmoZzTBBAsEUh4MazAN7ga%3D8SsMC-Knp-6cetts9yNZUCcg%40mail.gmail.com
This commit is contained in:
@@ -963,6 +963,10 @@ typedef struct ModifyTableState
|
||||
TupleConversionMap **mt_partition_tupconv_maps;
|
||||
/* Per partition tuple conversion map */
|
||||
TupleTableSlot *mt_partition_tuple_slot;
|
||||
struct TransitionCaptureState *mt_transition_capture;
|
||||
/* controls transition table population */
|
||||
TupleConversionMap **mt_transition_tupconv_maps;
|
||||
/* Per plan/partition tuple conversion */
|
||||
} ModifyTableState;
|
||||
|
||||
/* ----------------
|
||||
|
Reference in New Issue
Block a user