postgresql/src/test/regress
Tom Lane 0d18852666 Disallow CREATE INDEX if table is already in use in current session.
If we allow this, whatever outer command has the table open will not know
about the new index and may fail to update it as needed, as shown in a
report from Laurenz Albe.  We already had such a prohibition in place for
ALTER TABLE, but the CREATE INDEX syntax missed the check.

Fixing it requires an API change for DefineIndex(), which conceivably
would break third-party extensions if we were to back-patch it.  Given
how long this problem has existed without being noticed, fixing it in
the back branches doesn't seem worth that risk.

Discussion: https://postgr.es/m/A737B7A37273E048B164557ADEF4A58B53A4DC9A@ntex2010i.host.magwien.gv.at
2017-06-04 12:02:41 -04:00
..
data
expected Disallow CREATE INDEX if table is already in use in current session. 2017-06-04 12:02:41 -04:00
input Remove support for version-0 calling conventions. 2017-03-30 06:25:46 -07:00
output Fix improper quoting of format_type_be() output. 2017-05-29 21:48:26 -04:00
sql Disallow CREATE INDEX if table is already in use in current session. 2017-06-04 12:02:41 -04:00
.gitignore
GNUmakefile Remove ICU tests from default run 2017-03-25 00:30:26 -04:00
Makefile
parallel_schedule Identity columns 2017-04-06 08:41:37 -04:00
pg_regress_main.c Fix inclusions of postgres_fe.h from .h files. 2017-03-08 20:41:06 -05:00
pg_regress.c Force the regression databases to have bytea_output set to hex 2017-03-20 18:12:24 -04:00
pg_regress.h Fix inclusions of postgres_fe.h from .h files. 2017-03-08 20:41:06 -05:00
README
regress.c Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
regressplans.sh
resultmap
serial_schedule Identity columns 2017-04-06 08:41:37 -04: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".