postgresql/src/test/modules
Michael Paquier 20a4b06a1e injection_points: Move some structs to new header injection_points.h
This commit moves the definitions of InjectionPointConditionType and
InjectionPointCondition into a new header local to the test module
injection_points.h, so as these can be shared across more files in the
module.  A patch for a bug fix is under discussion, whose proposed test
will benefit from this refactoring.

Backpatch down to where the module exists, as this should be useful for
future bug fixes, even cases unrelated to the thread where this change
has been discussed.

Author: Andrey Borodin <x4mmm@yandex-team.ru>
Author: Vlad Lesin <vladlesin@gmail.com>
Discussion: https://postgr.es/m/d2983796-2603-41b7-a66e-fc8489ddb954@gmail.com
Backpatch-through: 17
2026-05-18 11:11:44 +09:00
..
brin BRIN autosummarization may need a snapshot 2025-11-04 13:23:26 +01:00
commit_ts Disable commit timestamps during bootstrap 2025-07-04 15:10:17 +09:00
delay_execution Remove unstable test suite added by 525392d57 2025-02-22 15:19:23 +09:00
dummy_index_am Rename amcancrosscompare 2025-03-07 11:46:33 +01:00
dummy_seclabel Update copyright for 2025 2025-01-01 11:21:55 -05:00
gin Fix failures with cross-version pg_upgrade tests 2025-12-10 12:47:20 +09:00
injection_points injection_points: Move some structs to new header injection_points.h 2026-05-18 11:11:44 +09:00
ldap_password_func Replace deprecated log_connections values in docs and tests 2025-05-22 17:14:54 -04:00
libpq_pipeline Run pgperltidy 2025-06-29 21:14:21 -04:00
oauth_validator oauth: Correct test dependency on oauth_hook_client 2026-01-27 11:58:26 -08:00
plsample Update copyright for 2025 2025-01-01 11:21:55 -05:00
spgist_name_ops Update copyright for 2025 2025-01-01 11:21:55 -05:00
ssl_passphrase_callback Apply more consistent style for command options in TAP tests 2025-03-17 12:42:23 +09:00
test_aio Message style improvements 2025-08-26 22:48:00 +02:00
test_bloomfilter Get rid of our dependency on type "long" for memory size calculations. 2025-01-31 13:52:40 -05:00
test_cloexec Fix Mkvcbuild.pm builds of test_cloexec.c. 2025-12-29 15:48:27 +13:00
test_copy_callbacks Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
test_custom_rmgrs Remove unnecessary (char *) casts [xlog] 2025-02-13 10:57:07 +01:00
test_custom_types test_custom_types: Test module with fancy custom data types 2026-03-02 11:10:35 +09:00
test_ddl_deparse Don't malloc(0) in EventTriggerCollectAlterTSConfig 2026-03-04 15:04:53 +01:00
test_dsa Fix size underestimation of DSA pagemap for odd-sized segments 2026-03-09 13:46:31 +09:00
test_dsm_registry Fixed signed/unsigned mismatch in test_dsm_registry. 2025-06-06 11:40:52 -05:00
test_escape With GB18030, prevent SIGSEGV from reading past end of allocation. 2025-05-05 04:52:04 -07:00
test_extensions Hide duplicate names from extension views 2025-09-15 07:30:00 +02:00
test_ginpostinglist Fix copy-paste error in test_ginpostinglist 2026-03-24 17:17:48 +07:00
test_integerset Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_json_parser test_json_parser: Speed up 002_inline.pl 2025-10-01 08:14:23 -07:00
test_lfind Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_misc Prevent access to other sessions' temp tables 2026-05-14 15:06:27 +03:00
test_oat_hooks Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_parser Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_pg_dump pg_dump: Add --sequence-data. 2025-03-25 16:02:35 -05:00
test_predtest Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_radixtree Remove INT64_HEX_FORMAT and UINT64_HEX_FORMAT 2025-08-06 10:58:06 +02:00
test_rbtree Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_regex Replace pg_mblen() with bounds-checked versions. 2026-02-09 12:43:42 +13:00
test_resowner Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_rls_hooks Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_shm_mq Use correct DatumGet*() function in test_shm_mq_main(). 2025-06-27 13:37:26 -05:00
test_slru Set next multixid's offset when creating a new multixid 2025-12-03 19:15:18 +02:00
test_tidstore test_tidstore: Stabilize regression tests by sorting offsets. 2026-04-29 09:10:07 -07:00
typcache Fix failures with cross-version pg_upgrade tests 2025-12-10 12:47:20 +09:00
unsafe_tests Fix GUC check_hook validation for synchronized_standby_slots. 2025-10-27 06:37:35 +00:00
worker_spi pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
xid_wraparound Fix bogus extra arguments to query_safe in test 2025-12-10 19:38:56 +02:00
Makefile test_custom_types: Test module with fancy custom data types 2026-03-02 11:10:35 +09:00
meson.build test_custom_types: Test module with fancy custom data types 2026-03-02 11:10:35 +09:00
README Add an enforcement mechanism for global object names in regression tests. 2019-06-29 11:34:00 -04: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".

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.