mirror of https://github.com/postgres/postgres
There's no longer any reason to fire up a separate psql run to create these functions. (Some refactoring in the main regression tests is also called for, but that will take more thought.) Discussion: https://postgr.es/m/1655733.1639871614@sss.pgh.pa.uspull/138/head
parent
dc9c3b0ff2
commit
0e6e7f0806
@ -1,18 +0,0 @@ |
|||||||
-- Initialization that requires path substitution. |
|
||||||
-- directory paths and dlsuffix are passed to us in environment variables |
|
||||||
\getenv abs_srcdir PG_ABS_SRCDIR |
|
||||||
\getenv libdir PG_LIBDIR |
|
||||||
\getenv dlsuffix PG_DLSUFFIX |
|
||||||
\set regresslib :libdir '/regress' :dlsuffix |
|
||||||
CREATE FUNCTION setenv(text, text) |
|
||||||
RETURNS void |
|
||||||
AS :'regresslib', 'regress_setenv' |
|
||||||
LANGUAGE C STRICT; |
|
||||||
CREATE FUNCTION wait_pid(int) |
|
||||||
RETURNS void |
|
||||||
AS :'regresslib' |
|
||||||
LANGUAGE C STRICT; |
|
||||||
\set path :abs_srcdir '/' |
|
||||||
\set fnbody 'SELECT setenv(''PGSERVICEFILE'', ' :'path' ' || $1)' |
|
||||||
CREATE FUNCTION set_pgservicefile(text) RETURNS void LANGUAGE SQL |
|
||||||
AS :'fnbody'; |
|
@ -1,23 +0,0 @@ |
|||||||
-- Initialization that requires path substitution. |
|
||||||
|
|
||||||
-- directory paths and dlsuffix are passed to us in environment variables |
|
||||||
\getenv abs_srcdir PG_ABS_SRCDIR |
|
||||||
\getenv libdir PG_LIBDIR |
|
||||||
\getenv dlsuffix PG_DLSUFFIX |
|
||||||
|
|
||||||
\set regresslib :libdir '/regress' :dlsuffix |
|
||||||
|
|
||||||
CREATE FUNCTION setenv(text, text) |
|
||||||
RETURNS void |
|
||||||
AS :'regresslib', 'regress_setenv' |
|
||||||
LANGUAGE C STRICT; |
|
||||||
|
|
||||||
CREATE FUNCTION wait_pid(int) |
|
||||||
RETURNS void |
|
||||||
AS :'regresslib' |
|
||||||
LANGUAGE C STRICT; |
|
||||||
|
|
||||||
\set path :abs_srcdir '/' |
|
||||||
\set fnbody 'SELECT setenv(''PGSERVICEFILE'', ' :'path' ' || $1)' |
|
||||||
CREATE FUNCTION set_pgservicefile(text) RETURNS void LANGUAGE SQL |
|
||||||
AS :'fnbody'; |
|
Loading…
Reference in new issue