mirror of https://github.com/postgres/postgres
This test script is unsafe to run in "make installcheck" mode for (at least) two reasons: it creates and destroys some role names that don't follow the "regress_xxx" naming convention, and it sets and then resets the application_name GUC attached to every existing role. While we've not had complaints, these surely are not good things to do within a production installation, and regress.sgml pretty clearly implies that we won't do them. Rather than lose test coverage altogether, let's just move this script somewhere where it will get run by "make check" but not "make installcheck". src/test/modules/ already has that property. Since it seems likely that we'll want other regression tests in future that also exceed the constraints of "make installcheck", create a generically-named src/test/modules/unsafe_tests/ directory to hold them. Discussion: https://postgr.es/m/16638.1468620817@sss.pgh.pa.uspull/47/head
parent
2e810508f6
commit
c91504b958
@ -0,0 +1,4 @@ |
||||
# Generated subdirectories |
||||
/log/ |
||||
/results/ |
||||
/tmp_check/ |
@ -0,0 +1,14 @@ |
||||
# src/test/modules/unsafe_tests/Makefile
|
||||
|
||||
REGRESS = rolenames
|
||||
|
||||
ifdef USE_PGXS |
||||
PG_CONFIG = pg_config
|
||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS) |
||||
else |
||||
subdir = src/test/modules/unsafe_tests
|
||||
top_builddir = ../../../..
|
||||
include $(top_builddir)/src/Makefile.global |
||||
include $(top_srcdir)/contrib/contrib-global.mk |
||||
endif |
@ -0,0 +1,8 @@ |
||||
This directory doesn't actually contain any extension module. |
||||
|
||||
What it is is a home for regression tests that we don't want to run |
||||
during "make installcheck" because they could have side-effects that |
||||
seem undesirable for a production installation. |
||||
|
||||
An example is that rolenames.sql tests ALTER USER ALL and so could |
||||
have effects on pre-existing roles. |
Loading…
Reference in new issue