postgresql/src/test/modules
Daniel Gustafsson 8ae0a37932 oauth: Fix build on platforms without epoll/kqueue
register_socket() missed a variable declaration if neither
HAVE_SYS_EPOLL_H nor HAVE_SYS_EVENT_H was defined.

While we're fixing that, adjust the tests to check pg_config.h for one
of the multiplexer implementations, rather than assuming that Windows is
the only platform without support. (Christoph reported this on
hurd-amd64, an experimental Debian.)

Author: Jacob Champion <jacob.champion@enterprisedb.com>
Reported-by: Christoph Berg <myon@debian.org>
Discussion: https://postgr.es/m/Z-sPFl27Y0ZC-VBl%40msg.df7cb.de
2025-04-03 20:37:52 +02:00
..
brin Update copyright for 2025 2025-01-01 11:21:55 -05:00
commit_ts Apply more consistent style for command options in TAP tests 2025-03-17 12:42:23 +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 Update copyright for 2025 2025-01-01 11:21:55 -05:00
injection_points Injection points for hash aggregation. 2025-02-11 11:26:25 -08:00
ldap_password_func Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq_pipeline Make cancel request keys longer 2025-04-02 16:41:48 +03:00
oauth_validator oauth: Fix build on platforms without epoll/kqueue 2025-04-03 20:37:52 +02: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 tests: Fix incompatibility of test_aio with *_FORCE_RELEASE 2025-04-02 07:57:11 -04:00
test_bloomfilter Get rid of our dependency on type "long" for memory size calculations. 2025-01-31 13:52:40 -05: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_ddl_deparse Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_dsa Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_dsm_registry Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_escape test_escape: Fix output of --help 2025-02-20 09:30:54 +09:00
test_extensions Change SQL-language functions to use the plan cache. 2025-04-02 14:06:02 -04:00
test_ginpostinglist Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_integerset Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_json_parser meson: Add test dependencies for test_json_parser 2025-02-04 17:56:19 -05:00
test_lfind Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_misc Fix catcache invalidation of a list entry that's being built 2025-01-14 14:28:49 +02: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 Always use the caller-provided context for radix tree leaves 2025-01-06 13:26:02 +07:00
test_rbtree Update copyright for 2025 2025-01-01 11:21:55 -05:00
test_regex Update copyright for 2025 2025-01-01 11:21:55 -05: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 pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
test_slru Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
test_tidstore Update copyright for 2025 2025-01-01 11:21:55 -05:00
typcache Update copyright for 2025 2025-01-01 11:21:55 -05:00
unsafe_tests Remove direct handling of reloptions for toast tables 2025-03-14 09:28:51 +01:00
worker_spi pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
xid_wraparound Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
Makefile aio: Add test_aio module 2025-04-01 13:47:46 -04:00
meson.build aio: Add test_aio module 2025-04-01 13:47:46 -04: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.