Skip to content

Commit 8a6cbcf

Browse files
committed
Improve support of master
1 parent 43dbd76 commit 8a6cbcf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pg_variables_record.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ init_record(RecordVar *record, TupleDesc tupdesc, Variable *variable)
101101
variable->package->hctxTransact :
102102
variable->package->hctxRegular;
103103

104-
#if PG_VERSION_NUM >= 110000
104+
#if PG_VERSION_NUM >= 120000
105+
record->hctx = AllocSetContextCreateInternal(topctx,
106+
hash_name,
107+
ALLOCSET_DEFAULT_MINSIZE,
108+
ALLOCSET_DEFAULT_INITSIZE,
109+
ALLOCSET_DEFAULT_MAXSIZE);
110+
#elif PG_VERSION_NUM >= 110000
105111
record->hctx = AllocSetContextCreateExtended(topctx,
106112
hash_name,
107113
ALLOCSET_DEFAULT_MINSIZE,

0 commit comments

Comments
 (0)