postgresql/src/test/modules
Tom Lane c91504b958 Move rolenames test out of the core regression tests.
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.us
2019-06-30 12:51:12 -04:00
..
brin Add PGXS options to control TAP and isolation tests, take two 2018-12-03 09:27:35 +09:00
commit_ts Initial pgperltidy run for v12. 2019-05-22 13:36:19 -04:00
dummy_seclabel Update copyright for 2019 2019-01-02 12:44:25 -05:00
snapshot_too_old Add PGXS options to control TAP and isolation tests, take two 2018-12-03 09:27:35 +09:00
test_bloomfilter Update copyright for 2019 2019-01-02 12:44:25 -05:00
test_ddl_deparse Avoid order-of-execution problems with ALTER TABLE ADD PRIMARY KEY. 2019-04-23 12:25:27 -04:00
test_extensions Simplify restriction handling of two-phase commit for temporary objects 2019-01-26 10:45:23 +09:00
test_integerset Fix more typos and inconsistencies in the tree 2019-06-17 16:13:16 +09:00
test_parser Update copyright for 2019 2019-01-02 12:44:25 -05:00
test_pg_dump Add PGXS options to control TAP and isolation tests, take two 2018-12-03 09:27:35 +09:00
test_predtest Teach optimizer's predtest.c more things about ScalarArrayOpExpr. 2019-03-01 17:14:17 -05:00
test_rbtree Update copyright for 2019 2019-01-02 12:44:25 -05:00
test_rls_hooks Fix more strcmp() calls using boolean-like comparisons for result checks 2019-04-12 10:16:49 +09:00
test_shm_mq Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
unsafe_tests Move rolenames test out of the core regression tests. 2019-06-30 12:51:12 -04:00
worker_spi worker_spi needs a .gitignore file now. 2019-06-02 11:13:23 -04:00
Makefile Move rolenames test out of the core regression tests. 2019-06-30 12:51:12 -04:00
README Add an enforcement mechanism for global object names in regression tests. 2019-06-29 11:34:00 -04:00

README

Test extensions and libraries
=============================

src/test/modules contains PostgreSQL extensions that are primarily or entirely
intended for testing PostgreSQL and/or to serve as example code. The extensions
here aren't intended to be installed in a production server and aren't suitable
for "real work".

Furthermore, while you can do "make install" and "make installcheck" in
this directory or its children, it is NOT ADVISABLE to do so with a server
containing valuable data.  Some of these tests may have undesirable
side-effects on roles or other global objects within the tested server.
"make installcheck-world" at the top level does not recurse into this
directory.

Most extensions have their own pg_regress tests or isolationtester specs. Some
are also used by tests elsewhere in the tree.

If you're adding new hooks or other functionality exposed as C-level API this
is where to add the tests for it.