Skip to content

Commit e7953c6

Browse files
committed
Fix answer for gp_dispatch_keepalives
1 parent 67d879d commit e7953c6

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/test/regress/expected/gp_dispatch_keepalives.out

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
-- m/waiting for server to shut down.* done/
44
-- m/waiting for server to start.* done/
55
-- end_matchignore
6+
-- directory paths are passed to us in environment variables
7+
-----------------------------------------------------------------------------------
8+
\getenv abs_srcdir PG_ABS_SRCDIR
69
-- Setting up test functions to acquire keepalive parameters from the cdbgang
710
-- QD/QE libpq connection TCP sockets. Store the results in a table to diff
811
-- 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(
1417
OUT keepalives_interval int,
1518
OUT keepalives_count int,
1619
OUT keepalives_idle int)
17-
RETURNS SETOF record AS 'filename',
20+
RETURNS SETOF record AS :'filename',
1821
'gp_keepalives_check' LANGUAGE C VOLATILE EXECUTE ON MASTER;
1922
CREATE OR REPLACE LANGUAGE plpython3u;
2023
CREATE OR REPLACE FUNCTION save_keepalives_data(result_table text) RETURNS void AS $$

src/test/regress/sql/gp_dispatch_keepalives.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
-- m/waiting for server to shut down.* done/
44
-- m/waiting for server to start.* done/
55
-- end_matchignore
6+
-- directory paths are passed to us in environment variables
7+
-----------------------------------------------------------------------------------
8+
\getenv abs_srcdir PG_ABS_SRCDIR
69

710
-- Setting up test functions to acquire keepalive parameters from the cdbgang
811
-- 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(
1518
OUT keepalives_interval int,
1619
OUT keepalives_count int,
1720
OUT keepalives_idle int)
18-
RETURNS SETOF record AS 'filename',
21+
RETURNS SETOF record AS :'filename',
1922
'gp_keepalives_check' LANGUAGE C VOLATILE EXECUTE ON MASTER;
2023

2124
CREATE OR REPLACE LANGUAGE plpython3u;

0 commit comments

Comments
 (0)