You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by ch...@apache.org on 2025/12/13 14:04:38 UTC

(cloudberry) branch cbdb-postgres-merge updated: Fix answer for gp_dispatch_keepalives

This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this push:
     new e7953c603ce Fix answer for gp_dispatch_keepalives
e7953c603ce is described below

commit e7953c603ceee0af7d86d65b11a2e421e496454e
Author: Jinbao Chen <ch...@gmail.com>
AuthorDate: Sat Dec 13 22:04:25 2025 +0800

    Fix answer for gp_dispatch_keepalives
---
 src/test/regress/expected/gp_dispatch_keepalives.out | 5 ++++-
 src/test/regress/sql/gp_dispatch_keepalives.sql      | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/test/regress/expected/gp_dispatch_keepalives.out b/src/test/regress/expected/gp_dispatch_keepalives.out
index 3354aaf8253..0fabbda73b5 100644
--- a/src/test/regress/expected/gp_dispatch_keepalives.out
+++ b/src/test/regress/expected/gp_dispatch_keepalives.out
@@ -3,6 +3,9 @@
 -- m/waiting for server to shut down.* done/
 -- m/waiting for server to start.* done/
 -- end_matchignore
+-- directory paths are passed to us in environment variables
+-----------------------------------------------------------------------------------
+\getenv abs_srcdir PG_ABS_SRCDIR
 -- Setting up test functions to acquire keepalive parameters from the cdbgang
 -- QD/QE libpq connection TCP sockets. Store the results in a table to diff
 -- later. We need to call the C UDF from the plpython UDF to be able to store
@@ -14,7 +17,7 @@ CREATE OR REPLACE FUNCTION gp_keepalives_check(
     OUT keepalives_interval int,
     OUT keepalives_count int,
     OUT keepalives_idle int)
-RETURNS SETOF record AS 'filename',
+RETURNS SETOF record AS :'filename',
 'gp_keepalives_check' LANGUAGE C VOLATILE EXECUTE ON MASTER;
 CREATE OR REPLACE LANGUAGE plpython3u;
 CREATE OR REPLACE FUNCTION save_keepalives_data(result_table text) RETURNS void AS $$
diff --git a/src/test/regress/sql/gp_dispatch_keepalives.sql b/src/test/regress/sql/gp_dispatch_keepalives.sql
index f92e0b7ade1..e5ca2113da3 100644
--- a/src/test/regress/sql/gp_dispatch_keepalives.sql
+++ b/src/test/regress/sql/gp_dispatch_keepalives.sql
@@ -3,6 +3,9 @@
 -- m/waiting for server to shut down.* done/
 -- m/waiting for server to start.* done/
 -- end_matchignore
+-- directory paths are passed to us in environment variables
+-----------------------------------------------------------------------------------
+\getenv abs_srcdir PG_ABS_SRCDIR
 
 -- Setting up test functions to acquire keepalive parameters from the cdbgang
 -- QD/QE libpq connection TCP sockets. Store the results in a table to diff
@@ -15,7 +18,7 @@ CREATE OR REPLACE FUNCTION gp_keepalives_check(
     OUT keepalives_interval int,
     OUT keepalives_count int,
     OUT keepalives_idle int)
-RETURNS SETOF record AS 'filename',
+RETURNS SETOF record AS :'filename',
 'gp_keepalives_check' LANGUAGE C VOLATILE EXECUTE ON MASTER;
 
 CREATE OR REPLACE LANGUAGE plpython3u;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org