diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-11-09 15:41:34 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-11-09 15:41:34 +0900 |
commit | 943b447d303e6d0a7635d39ac552550b77b96cef (patch) | |
tree | 1586cc4189b54b1c547729c3e5db5e8bf537949a /src | |
parent | 1858b105b05fcded43e9f2b767dec7268431043b (diff) | |
download | postgresql-943b447d303e6d0a7635d39ac552550b77b96cef.tar.gz postgresql-943b447d303e6d0a7635d39ac552550b77b96cef.zip |
Fix new COPY test of PL/pgSQL with VPATH builds
The buildfarm has turned red after 1858b10 because VPATH builds need to
use "@abs_srcdir@" and not "@abs_builddir@" for paths coming directly
from the source tree. The input file of the new test got that right,
but not the output file.
Per complaints from several buildfarm animals, including desmoxytes and
culicidae. I have also reproduced the error by myself.
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpgsql/src/output/plpgsql_copy.source | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpgsql/src/output/plpgsql_copy.source b/src/pl/plpgsql/src/output/plpgsql_copy.source index 78c9a751800..86e833d055a 100644 --- a/src/pl/plpgsql/src/output/plpgsql_copy.source +++ b/src/pl/plpgsql/src/output/plpgsql_copy.source @@ -32,7 +32,7 @@ CONTEXT: PL/pgSQL function inline_code_block line 3 at EXECUTE -- COPY FROM DO LANGUAGE plpgsql $$ BEGIN - COPY copy1 FROM '@abs_builddir@/data/copy1.data'; + COPY copy1 FROM '@abs_srcdir@/data/copy1.data'; END; $$; SELECT * FROM copy1 ORDER BY 1; @@ -46,7 +46,7 @@ SELECT * FROM copy1 ORDER BY 1; TRUNCATE copy1; DO LANGUAGE plpgsql $$ BEGIN - EXECUTE 'COPY copy1 FROM ''@abs_builddir@/data/copy1.data'''; + EXECUTE 'COPY copy1 FROM ''@abs_srcdir@/data/copy1.data'''; END; $$; SELECT * FROM copy1 ORDER BY 1; |