Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54c5110

Browse files
committed
Improve support of current master
1 parent691c9c6 commit54c5110

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎src/rum.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,10 @@ extern Datum FunctionCall10Coll(FmgrInfo *flinfo, Oid collation,
10621062
Datumarg9,Datumarg10);
10631063

10641064
/* PostgreSQL version-agnostic creation of memory context */
1065-
#ifPG_VERSION_NUM >=110000
1065+
#ifPG_VERSION_NUM >=120000
1066+
#defineRumContextCreate(parent,name) \
1067+
AllocSetContextCreate(parent, name, ALLOCSET_DEFAULT_SIZES)
1068+
#elifPG_VERSION_NUM >=110000
10661069
#defineRumContextCreate(parent,name) \
10671070
AllocSetContextCreateExtended(parent, name, \
10681071
ALLOCSET_DEFAULT_MINSIZE, \

‎src/rumsort.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,11 @@ rum_tuplesort_begin_cluster(TupleDesc tupDesc,
10671067
* scantuple has to point to that slot, too.
10681068
*/
10691069
state->estate=CreateExecutorState();
1070+
#ifPG_VERSION_NUM >=120000
1071+
slot=MakeSingleTupleTableSlot(tupDesc,&TTSOpsVirtual);
1072+
#else
10701073
slot=MakeSingleTupleTableSlot(tupDesc);
1074+
#endif
10711075
econtext=GetPerTupleExprContext(state->estate);
10721076
econtext->ecxt_scantuple=slot;
10731077
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp