diff options
author | Tom Lane | 2021-12-20 19:15:52 +0000 |
---|---|---|
committer | Tom Lane | 2021-12-20 19:15:52 +0000 |
commit | dc9c3b0ff21465fa89d71eecf5e6cc956d647eca (patch) | |
tree | 3c6f695eb5159d9673d3ce749d7a1499ca779c18 /contrib/dblink/sql | |
parent | d1029bb5a26cb84b116b0dee4dde312291359f2a (diff) |
Remove dynamic translation of regression test scripts, step 2.
"git mv" all the input/*.source and output/*.source files into
the corresponding sql/ and expected/ directories. Then remove
the pg_regress and Makefile infrastructure associated with
dynamic translation.
Discussion: https://postgr.es/m/1655733.1639871614@sss.pgh.pa.us
Diffstat (limited to 'contrib/dblink/sql')
-rw-r--r-- | contrib/dblink/sql/.gitignore | 1 | ||||
-rw-r--r-- | contrib/dblink/sql/paths.sql | 23 |
2 files changed, 23 insertions, 1 deletions
diff --git a/contrib/dblink/sql/.gitignore b/contrib/dblink/sql/.gitignore deleted file mode 100644 index d17507846d0..00000000000 --- a/contrib/dblink/sql/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/paths.sql diff --git a/contrib/dblink/sql/paths.sql b/contrib/dblink/sql/paths.sql new file mode 100644 index 00000000000..30403d9d5f7 --- /dev/null +++ b/contrib/dblink/sql/paths.sql @@ -0,0 +1,23 @@ +-- 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'; |