From f96fb9eaf0b02709af5f9998d6982061bcc7eb70 Mon Sep 17 00:00:00 2001 From: Sergey Shinderuk Date: Mon, 4 Aug 2025 18:27:26 +0300 Subject: [PATCH 1/3] Fix Travis CI build --- .travis.yml | 2 +- run-tests.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2c63eff..98d4318 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ dist: jammy language: c env: -- PG_MAJOR=18 SNAPSHOT=1 +- PG_MAJOR=18 BETA=1 - PG_MAJOR=17 - PG_MAJOR=16 - PG_MAJOR=15 diff --git a/run-tests.sh b/run-tests.sh index f3f1bba..f42e999 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -6,6 +6,7 @@ export PGDATA=/var/lib/postgresql/$PG_MAJOR/test export COPT=-Werror export USE_PGXS=1 +sudo mkdir -p /var/lib/postgresql/$PG_MAJOR sudo chmod 1777 /var/lib/postgresql/$PG_MAJOR sudo chmod 1777 /var/run/postgresql From 899ea541fbf9a8bbb41ca74dcc8142c531a5f137 Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Thu, 9 Oct 2025 09:15:58 +0500 Subject: [PATCH 2/3] postgres 19 support Commit postgres/postgres@c83ac02 added new last argument ExplainState *es to standard_planner function and planner_hook_type type. --- pg_wait_sampling.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pg_wait_sampling.c b/pg_wait_sampling.c index e165a6a..7e8abb9 100644 --- a/pg_wait_sampling.c +++ b/pg_wait_sampling.c @@ -75,7 +75,11 @@ static PlannedStmt *pgws_planner_hook(Query *parse, #if PG_VERSION_NUM >= 130000 const char *query_string, #endif - int cursorOptions, ParamListInfo boundParams); + int cursorOptions, ParamListInfo boundParams +#if PG_VERSION_NUM >= 190000 + , ExplainState *es +#endif + ); static void pgws_ExecutorStart(QueryDesc *queryDesc, int eflags); static void pgws_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, @@ -937,7 +941,11 @@ pgws_planner_hook(Query *parse, const char *query_string, #endif int cursorOptions, - ParamListInfo boundParams) + ParamListInfo boundParams +#if PG_VERSION_NUM >= 190000 + , ExplainState *es +#endif + ) { PlannedStmt *result; int i = MyProc - ProcGlobal->allProcs; @@ -958,13 +966,21 @@ pgws_planner_hook(Query *parse, #if PG_VERSION_NUM >= 130000 query_string, #endif - cursorOptions, boundParams); + cursorOptions, boundParams +#if PG_VERSION_NUM >= 190000 + , es +#endif + ); else result = standard_planner(parse, #if PG_VERSION_NUM >= 130000 query_string, #endif - cursorOptions, boundParams); + cursorOptions, boundParams +#if PG_VERSION_NUM >= 190000 + , es +#endif + ); nesting_level--; if (nesting_level == 0) pgws_proc_queryids[i] = UINT64CONST(0); From 91b163ddc377f263fbcdf13c8c736a6361598de9 Mon Sep 17 00:00:00 2001 From: Oleg Tselebrovskiy Date: Tue, 14 Oct 2025 16:40:24 +0700 Subject: [PATCH 3/3] Add PG-19 to travis-ci --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 98d4318..f68e8de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ dist: jammy language: c env: -- PG_MAJOR=18 BETA=1 +- PG_MAJOR=19 SNAPSHOT=1 +- PG_MAJOR=18 - PG_MAJOR=17 - PG_MAJOR=16 - PG_MAJOR=15