summaryrefslogtreecommitdiffstats
path: root/contrib/dblink/input/paths.source
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dblink/input/paths.source')
-rw-r--r--contrib/dblink/input/paths.source14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/dblink/input/paths.source b/contrib/dblink/input/paths.source
new file mode 100644
index 0000000..881a653
--- /dev/null
+++ b/contrib/dblink/input/paths.source
@@ -0,0 +1,14 @@
+-- Initialization that requires path substitution.
+
+CREATE FUNCTION setenv(text, text)
+ RETURNS void
+ AS '@libdir@/regress@DLSUFFIX@', 'regress_setenv'
+ LANGUAGE C STRICT;
+
+CREATE FUNCTION wait_pid(int)
+ RETURNS void
+ AS '@libdir@/regress@DLSUFFIX@'
+ LANGUAGE C STRICT;
+
+CREATE FUNCTION set_pgservicefile(text) RETURNS void LANGUAGE SQL
+ AS $$SELECT setenv('PGSERVICEFILE', '@abs_srcdir@/' || $1)$$;