postgresql/src/test/modules
Tom Lane 0a8929ca0b Improve display of query results in isolation tests.
Previously, isolationtester displayed SQL query results using some
ad-hoc code that clearly hadn't had much effort expended on it.
Field values longer than 14 characters weren't separated from
the next field, and usually caused misalignment of the columns
too.  Also there was no visual separation of a query's result
from subsequent isolationtester output.  This made test result
files confusing and hard to read.

To improve matters, let's use libpq's PQprint() function.  Although
that's long since unused by psql, it's still plenty good enough
for the purpose here.

Like 741d7f104, back-patch to all supported branches, so that this
isn't a stumbling block for back-patching isolation test changes.

Discussion: https://postgr.es/m/582362.1623798221@sss.pgh.pa.us
2021-06-23 11:12:31 -04:00
..
brin Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
commit_ts Add a temp-install prerequisite to "check"-like targets not having one. 2017-11-05 18:51:15 -08:00
dummy_seclabel doc: Fix naming of SELinux 2020-01-10 09:37:27 +09:00
snapshot_too_old Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
test_ddl_deparse Solve cross-version-upgrade testing problem induced by 1fb57af92. 2019-02-09 21:02:06 -05:00
test_extensions Avoid duplicates in ALTER ... DEPENDS ON EXTENSION 2020-03-11 11:04:59 -03:00
test_parser Remove contrib/tsearch2. 2017-02-13 11:06:11 -05:00
test_pg_dump Fix pg_dump for GRANT OPTION among initial privileges. 2021-01-16 12:21:39 -08:00
test_rls_hooks Fix test_rls_hooks to assign expression collations properly. 2018-12-11 11:48:00 -05:00
test_shm_mq Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
worker_spi Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
Makefile Provide and use a makefile target to build all generated headers. 2016-07-01 15:09:02 -04:00
README Add README in src/test and src/test/modules 2016-02-25 21:08:32 -03:00

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".

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.