mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
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>
This commit is contained in:
contrib
dblink
file_fdw
sepgsql
test_decoding
doc/src/sgml
src
bin
interfaces
ecpg
test
Makefile
compat_informix
connect
expected
compat_informix-describe.ccompat_informix-describe.stderrcompat_informix-rnull.ccompat_informix-rnull.stderrcompat_informix-sqlda.ccompat_informix-sqlda.stderrcompat_informix-test_informix.ccompat_informix-test_informix.stderrcompat_informix-test_informix2.ccompat_informix-test_informix2.stderrconnect-test1-minGW32.stderrconnect-test1.cconnect-test1.stderrconnect-test2.cconnect-test2.stderrconnect-test3.cconnect-test3.stderrconnect-test4.cconnect-test4.stderrconnect-test5.cconnect-test5.stderrpgtypeslib-dt_test.cpgtypeslib-dt_test.stderrpgtypeslib-nan_test.cpgtypeslib-nan_test.stderrpgtypeslib-num_test.cpgtypeslib-num_test.stderrpreproc-array_of_struct.cpreproc-array_of_struct.stderrpreproc-autoprep.cpreproc-autoprep.stderrpreproc-comment.cpreproc-comment.stderrpreproc-cursor.cpreproc-cursor.stderrpreproc-define.cpreproc-define.stderrpreproc-describe.cpreproc-describe.stderrpreproc-outofscope.cpreproc-outofscope.stderrpreproc-pointer_to_struct.cpreproc-pointer_to_struct.stderrpreproc-strings.cpreproc-strings.stderrpreproc-type.cpreproc-type.stderrpreproc-variable.cpreproc-variable.stderrpreproc-whenever.cpreproc-whenever.stderrsql-array.csql-array.stderrsql-binary.csql-binary.stderrsql-code100.csql-code100.stderrsql-copystdout.csql-copystdout.stderrsql-define.csql-define.stderrsql-desc.csql-desc.stderrsql-describe.csql-describe.stderrsql-dynalloc.csql-dynalloc.stderrsql-dynalloc2.csql-dynalloc2.stderrsql-dyntest.csql-dyntest.stderrsql-execute.csql-execute.stderrsql-fetch.csql-fetch.stderrsql-func.csql-func.stderrsql-indicators.csql-indicators.stderrsql-insupd.csql-insupd.stderrsql-oldexec.csql-oldexec.stderrsql-parser.csql-parser.stderrsql-quote.csql-quote.stderrsql-show.csql-show.stderrsql-sqlda.csql-sqlda.stderrthread-alloc.cthread-prep.cthread-thread.cthread-thread_implicit.c
regression.htest
isolation
modules
dummy_seclabel
test_ddl_deparse
test_pg_dump
test_rls_hooks
regress
expected
alter_generic.outalter_operator.outcluster.outconversion.outcreate_function_3.outcreate_index.outdependency.outdrop_if_exists.outevent_trigger.outforeign_data.outguc.outobject_address.outprivileges.outregproc.outroleattributes.outrolenames.outsecurity_label.outselect_into.outsequence.outsequence_1.outupdatable_views.out
input
output
sql
alter_generic.sqlalter_operator.sqlcluster.sqlconversion.sqlcreate_function_3.sqlcreate_index.sqldependency.sqldrop_if_exists.sqlevent_trigger.sqlforeign_data.sqlguc.sqlobject_address.sqlprivileges.sqlregproc.sqlroleattributes.sqlrolenames.sqlsecurity_label.sqlselect_into.sqlsequence.sqlupdatable_views.sql
tools
msvc
@ -58,7 +58,7 @@ main(void)
|
||||
|
||||
ECPGdebug(1, stderr);
|
||||
|
||||
{ ECPGconnect(__LINE__, 0, "regress1" , NULL, NULL , "main", 0);
|
||||
{ ECPGconnect(__LINE__, 0, "ecpg1_regression" , NULL, NULL , "main", 0);
|
||||
#line 24 "execute.pgc"
|
||||
|
||||
if (sqlca.sqlcode < 0) sqlprint();}
|
||||
|
Reference in New Issue
Block a user