@@ -779,7 +779,12 @@ extern AttrNumber *convert_tuples_by_name_map(TupleDesc indesc,
779779/*
780780 * ExecBRUpdateTriggers()
781781 */
782- #if PG_VERSION_NUM >=150000 /* for commit 7103ebb7aae8 */
782+ #if PG_VERSION_NUM >=160000
783+ #define ExecBRUpdateTriggersCompat (estate ,epqstate ,relinfo , \
784+ tupleid ,fdw_trigtuple ,newslot ) \
785+ ExecBRUpdateTriggers((estate), (epqstate), (relinfo), (tupleid), \
786+ (fdw_trigtuple), (newslot), NULL, NULL)
787+ #elif PG_VERSION_NUM >=150000 /* for commit 7103ebb7aae8 */
783788#define ExecBRUpdateTriggersCompat (estate ,epqstate ,relinfo , \
784789tupleid ,fdw_trigtuple ,newslot ) \
785790ExecBRUpdateTriggers((estate), (epqstate), (relinfo), (tupleid), \
@@ -809,7 +814,12 @@ extern AttrNumber *convert_tuples_by_name_map(TupleDesc indesc,
809814/*
810815 * ExecBRDeleteTriggers()
811816 */
812- #if PG_VERSION_NUM >=110000
817+ #if PG_VERSION_NUM >=160000
818+ #define ExecBRDeleteTriggersCompat (estate ,epqstate ,relinfo ,tupleid , \
819+ fdw_trigtuple ,epqslot ) \
820+ ExecBRDeleteTriggers((estate), (epqstate), (relinfo), (tupleid), \
821+ (fdw_trigtuple), (epqslot), NULL, NULL)
822+ #elif PG_VERSION_NUM >=110000
813823#define ExecBRDeleteTriggersCompat (estate ,epqstate ,relinfo ,tupleid , \
814824fdw_trigtuple ,epqslot ) \
815825ExecBRDeleteTriggers((estate), (epqstate), (relinfo), (tupleid), \
@@ -1028,15 +1038,19 @@ extern AttrNumber *convert_tuples_by_name_map(TupleDesc indesc,
10281038/*
10291039 * ExecInsertIndexTuples. Since 12 slot contains tupleid.
10301040 * Since 14: new fields "resultRelInfo", "update".
1041+ * Since 16: new bool field "onlySummarizing".
10311042 */
1032- #if PG_VERSION_NUM >=140000
1033- #define ExecInsertIndexTuplesCompat (resultRelInfo ,slot ,tupleid ,estate ,update ,noDupError ,specConflict ,arbiterIndexes ) \
1043+ #if PG_VERSION_NUM >=160000
1044+ #define ExecInsertIndexTuplesCompat (resultRelInfo ,slot ,tupleid ,estate ,update ,noDupError ,specConflict ,arbiterIndexes ,onlySummarizing ) \
1045+ ExecInsertIndexTuples((resultRelInfo), (slot), (estate), (update), (noDupError), (specConflict), (arbiterIndexes), (onlySummarizing))
1046+ #elif PG_VERSION_NUM >=140000
1047+ #define ExecInsertIndexTuplesCompat (resultRelInfo ,slot ,tupleid ,estate ,update ,noDupError ,specConflict ,arbiterIndexes ,onlySummarizing ) \
10341048ExecInsertIndexTuples((resultRelInfo), (slot), (estate), (update), (noDupError), (specConflict), (arbiterIndexes))
10351049#elif PG_VERSION_NUM >=120000
1036- #define ExecInsertIndexTuplesCompat (resultRelInfo ,slot ,tupleid ,estate ,update ,noDupError ,specConflict ,arbiterIndexes ) \
1050+ #define ExecInsertIndexTuplesCompat (resultRelInfo ,slot ,tupleid ,estate ,update ,noDupError ,specConflict ,arbiterIndexes , onlySummarizing ) \
10371051ExecInsertIndexTuples((slot), (estate), (noDupError), (specConflict), (arbiterIndexes))
10381052#else
1039- #define ExecInsertIndexTuplesCompat (resultRelInfo ,slot ,tupleid ,estate ,update ,noDupError ,specConflict ,arbiterIndexes ) \
1053+ #define ExecInsertIndexTuplesCompat (resultRelInfo ,slot ,tupleid ,estate ,update ,noDupError ,specConflict ,arbiterIndexes , onlySummarizing ) \
10401054ExecInsertIndexTuples((slot), (tupleid), (estate), (noDupError), (specConflict), (arbiterIndexes))
10411055#endif
10421056