postgresql/src/test/regress
Tom Lane 546f7c2e38 Don't fail for bad GUCs in CREATE FUNCTION with check_function_bodies off.
The previous coding attempted to activate all the GUC settings specified
in SET clauses, so that the function validator could operate in the GUC
environment expected by the function body.  However, this is problematic
when restoring a dump, since the SET clauses might refer to database
objects that don't exist yet.  We already have the parameter
check_function_bodies that's meant to prevent forward references in
function definitions from breaking dumps, so let's change CREATE FUNCTION
to not install the SET values if check_function_bodies is off.

Authors of function validators were already advised not to make any
"context sensitive" checks when check_function_bodies is off, if indeed
they're checking anything at all in that mode.  But extend the
documentation to point out the GUC issue in particular.

(Note that we still check the SET clauses to some extent; the behavior
with !check_function_bodies is now approximately equivalent to what ALTER
DATABASE/ROLE have been doing for awhile with context-dependent GUCs.)

This problem can be demonstrated in all active branches, so back-patch
all the way.
2013-09-03 18:32:20 -04:00
..
data Fix GIN to support null keys, empty and null items, and full index scans. 2011-01-07 19:16:24 -05:00
expected Don't fail for bad GUCs in CREATE FUNCTION with check_function_bodies off. 2013-09-03 18:32:20 -04:00
input Add support for multiple kinds of external toast datums. 2013-07-02 13:38:55 -04:00
output Add support for multiple kinds of external toast datums. 2013-07-02 13:38:55 -04:00
sql Don't fail for bad GUCs in CREATE FUNCTION with check_function_bodies off. 2013-09-03 18:32:20 -04:00
.gitignore
GNUmakefile Fix regression test make dependencies 2013-07-01 21:10:36 -04:00
Makefile
parallel_schedule Regression tests for LOCK TABLE. 2013-07-15 12:30:41 -04:00
pg_regress_main.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
pg_regress.c pg_regress: Allow overriding diff options 2013-01-29 22:59:45 -05:00
pg_regress.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
regress.c Add support for multiple kinds of external toast datums. 2013-07-02 13:38:55 -04:00
regressplans.sh
resultmap Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
serial_schedule Regression tests for LOCK TABLE. 2013-07-15 12:30:41 -04:00
standby_schedule