postgresql/src/test/regress
Michael Paquier 5bde1651bb Switch function current_schema[s]() to be parallel-unsafe
When invoked for the first time in a session, current_schema() and
current_schemas() can finish by creating a temporary schema.  Currently
those functions are parallel-safe, however if for a reason or another
they get launched across multiple parallel workers, they would fail when
attempting to create a temporary schema as temporary contexts are not
supported in this case.

The original issue has been spotted by buildfarm members crake and
lapwing, after commit c5660e0 has introduced the first regression tests
based on current_schema() in the tree.  After that, 396676b has
introduced a workaround to avoid parallel plans but that was not
completely right either.

Catversion is bumped.

Author: Michael Paquier
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/20190118024618.GF1883@paquier.xyz
2019-03-27 11:35:12 +09:00
..
data
expected Switch function current_schema[s]() to be parallel-unsafe 2019-03-27 11:35:12 +09:00
input Build out the planner support function infrastructure. 2019-02-09 18:32:23 -05:00
output Build out the planner support function infrastructure. 2019-02-09 18:32:23 -05:00
sql Switch function current_schema[s]() to be parallel-unsafe 2019-03-27 11:35:12 +09:00
.gitignore
GNUmakefile Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile Fix non-GNU makefiles for AIX make. 2017-11-30 00:57:22 -08:00
parallel_schedule Get rid of backtracking in jsonpath_scan.l 2019-03-25 15:43:56 +03:00
pg_regress_main.c tableam: introduce table AM infrastructure. 2019-03-06 09:54:38 -08:00
pg_regress.c Align timestamps in pg_regress output 2019-03-25 10:02:24 +01:00
pg_regress.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
README
regress.c Build out the planner support function infrastructure. 2019-02-09 18:32:23 -05:00
regressplans.sh
resultmap Cygwin and Mingw floating-point fixes. 2019-02-16 01:50:16 +00:00
serial_schedule Get rid of backtracking in jsonpath_scan.l 2019-03-25 15:43:56 +03:00
standby_schedule

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".