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

Commit899ea54

Browse files
authored
postgres 19 support
Commitpostgres/postgres@c83ac02 added new last argument ExplainState *es tostandard_planner function and planner_hook_type type.
1 parentf96fb9e commit899ea54

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

‎pg_wait_sampling.c‎

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
7575
#ifPG_VERSION_NUM >=130000
7676
constchar*query_string,
7777
#endif
78-
intcursorOptions,ParamListInfoboundParams);
78+
intcursorOptions,ParamListInfoboundParams
79+
#ifPG_VERSION_NUM >=190000
80+
,ExplainState*es
81+
#endif
82+
);
7983
staticvoidpgws_ExecutorStart(QueryDesc*queryDesc,inteflags);
8084
staticvoidpgws_ExecutorRun(QueryDesc*queryDesc,
8185
ScanDirectiondirection,
@@ -937,7 +941,11 @@ pgws_planner_hook(Query *parse,
937941
constchar*query_string,
938942
#endif
939943
intcursorOptions,
940-
ParamListInfoboundParams)
944+
ParamListInfoboundParams
945+
#ifPG_VERSION_NUM >=190000
946+
,ExplainState*es
947+
#endif
948+
)
941949
{
942950
PlannedStmt*result;
943951
inti=MyProc-ProcGlobal->allProcs;
@@ -958,13 +966,21 @@ pgws_planner_hook(Query *parse,
958966
#ifPG_VERSION_NUM >=130000
959967
query_string,
960968
#endif
961-
cursorOptions,boundParams);
969+
cursorOptions,boundParams
970+
#ifPG_VERSION_NUM >=190000
971+
,es
972+
#endif
973+
);
962974
else
963975
result=standard_planner(parse,
964976
#ifPG_VERSION_NUM >=130000
965977
query_string,
966978
#endif
967-
cursorOptions,boundParams);
979+
cursorOptions,boundParams
980+
#ifPG_VERSION_NUM >=190000
981+
,es
982+
#endif
983+
);
968984
nesting_level--;
969985
if (nesting_level==0)
970986
pgws_proc_queryids[i]=UINT64CONST(0);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp