postgresql/src/test/modules
Nathan Bossart efdc7d7475 Add INT64_HEX_FORMAT and UINT64_HEX_FORMAT to c.h.
Like INT64_FORMAT and UINT64_FORMAT, these macros produce format
strings for 64-bit integers.  However, INT64_HEX_FORMAT and
UINT64_HEX_FORMAT generate the output in hexadecimal instead of
decimal.  Besides introducing these macros, this commit makes use
of them in several places.  This was originally intended to be part
of commit 5d6187d2a2, but I left it out because I felt there was a
nonzero chance that back-patching these new macros into c.h could
cause problems with third-party code.  We tend to be less cautious
with such changes in new major versions.

Note that UINT64_HEX_FORMAT was originally added in commit
ee1b30f128, but it was placed in test_radixtree.c, so it wasn't
widely available.  This commit moves UINT64_HEX_FORMAT to c.h.

Discussion: https://postgr.es/m/ZwQvtUbPKaaRQezd%40nathan
2024-11-22 12:41:57 -06:00
..
brin Update copyright for 2024 2024-01-03 20:49:05 -05:00
commit_ts Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
delay_execution Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
dummy_index_am Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
dummy_seclabel Update copyright for 2024 2024-01-03 20:49:05 -05:00
gin Make GIN tests using injection points concurrent-safe 2024-04-10 13:48:13 +09:00
injection_points Add write_to_file to PgStat_KindInfo for pgstats kinds 2024-11-22 10:12:26 +09:00
ldap_password_func Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
libpq_pipeline Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
plsample Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
spgist_name_ops Update copyright for 2024 2024-01-03 20:49:05 -05:00
ssl_passphrase_callback Cleanup perl code from unused variables and routines 2024-07-02 09:47:16 +09:00
test_bloomfilter Update copyright for 2024 2024-01-03 20:49:05 -05:00
test_copy_callbacks Update copyright for 2024 2024-01-03 20:49:05 -05:00
test_custom_rmgrs Update copyright for 2024 2024-01-03 20:49:05 -05:00
test_ddl_deparse Add pg_constraint rows for not-null constraints 2024-11-08 13:28:48 +01:00
test_dsa Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
test_dsm_registry Introduce the dynamic shared memory registry. 2024-01-19 14:24:36 -06:00
test_extensions Improve reporting of errors in extension script files. 2024-10-22 11:31:45 -04:00
test_ginpostinglist Fix some typos 2024-01-22 13:55:25 +09:00
test_integerset Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
test_json_parser Update .gitignore 2024-09-11 09:26:20 +02:00
test_lfind Update copyright for 2024 2024-01-03 20:49:05 -05:00
test_misc Add missing FATAL => 'all' to a use warnings in Perl 2024-10-29 10:26:17 +01:00
test_oat_hooks Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
test_parser Update copyright for 2024 2024-01-03 20:49:05 -05:00
test_pg_dump Add a parse location field to struct FunctionParameter. 2024-10-31 16:09:27 -04:00
test_predtest Don't bother checking the result of SPI_connect[_ext] anymore. 2024-09-09 12:18:34 -04:00
test_radixtree Add INT64_HEX_FORMAT and UINT64_HEX_FORMAT to c.h. 2024-11-22 12:41:57 -06:00
test_rbtree Update copyright for 2024 2024-01-03 20:49:05 -05:00
test_regex Avoid assertion due to disconnected NFA sub-graphs in regex parsing. 2024-11-15 18:23:38 -05:00
test_resowner Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
test_rls_hooks Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
test_shm_mq Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
test_slru Add missing newlines at the end of two SQL files 2024-11-03 19:42:51 +09:00
test_tidstore Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
typcache Fix concurrrently in typcache_rel_type_cache.sql 2024-10-25 13:12:16 +03:00
unsafe_tests Fix per-session activation of ALTER {ROLE|DATABASE} SET role. 2024-11-15 20:39:56 -08:00
worker_spi Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
xid_wraparound Mark consume_xids test functions VOLATILE and PARALLEL UNSAFE 2024-10-11 11:09:09 +03:00
Makefile Avoid looping over all type cache entries in TypeCacheRelCallback() 2024-10-24 14:35:52 +03:00
meson.build Avoid looping over all type cache entries in TypeCacheRelCallback() 2024-10-24 14:35:52 +03: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.