postgresql/contrib/sepgsql
Tom Lane 18555b1323 Establish conventions about global object names used in regression tests.
To ensure that "make installcheck" can be used safely against an existing
installation, we need to be careful about what global object names
(database, role, and tablespace names) we use; otherwise we might
accidentally clobber important objects.  There's been a weak consensus that
test databases should have names including "regression", and that test role
names should start with "regress_", but we didn't have any particular rule
about tablespace names; and neither of the other rules was followed with
any consistency either.

This commit moves us a long way towards having a hard-and-fast rule that
regression test databases must have names including "regression", and that
test role and tablespace names must start with "regress_".  It's not
completely there because I did not touch some test cases in rolenames.sql
that test creation of special role names like "session_user".  That will
require some rethinking of exactly what we want to test, whereas the intent
of this patch is just to hit all the cases in which the needed renamings
are cosmetic.

There is no enforcement mechanism in this patch either, but if we don't
add one we can expect that the tests will soon be violating the convention
again.  Again, that's not such a cosmetic change and it will require
discussion.  (But I did use a quick-hack enforcement patch to find these
cases.)

Discussion: <16638.1468620817@sss.pgh.pa.us>
2016-07-17 18:42:43 -04:00
..
expected Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
sql Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
.gitignore Minor sepgsql regression test fixes. 2011-02-02 23:46:51 -05:00
Makefile Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00
database.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
dml.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
hooks.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
label.c Fix typos. 2016-03-15 18:06:11 -04:00
launcher Update copyright for 2016 2016-01-02 13:33:40 -05:00
proc.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
relation.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
schema.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
selinux.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sepgsql-regtest.te Fix sepgsql regression tests. 2015-08-30 11:09:05 -07:00
sepgsql.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
sepgsql.sql.in sepgsql_setcon(). 2012-03-15 16:08:40 -04:00
test_sepgsql Fix omission of -X (--no-psqlrc) in some psql invocations. 2015-12-28 11:46:43 -05:00
uavc.c Don't use !! but != 0/NULL to force boolean evaluation. 2016-03-27 18:10:19 +02:00