postgresql/src/test/modules
Peter Eisentraut d746021de1 Add construct_array_builtin, deconstruct_array_builtin
There were many calls to construct_array() and deconstruct_array() for
built-in types, for example, when dealing with system catalog columns.
These all hardcoded the type attributes necessary to pass to these
functions.

To simplify this a bit, add construct_array_builtin(),
deconstruct_array_builtin() as wrappers that centralize this hardcoded
knowledge.  This simplifies many call sites and reduces the amount of
hardcoded stuff that is spread around.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/2914356f-9e5f-8c59-2995-5997fc48bcba%40enterprisedb.com
2022-07-01 11:23:15 +02:00
..
brin Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
commit_ts Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
delay_execution Remove non-functional code for unloading loadable modules. 2022-05-11 15:30:30 -04:00
dummy_index_am Revert changes in HOT handling of BRIN indexes 2022-06-16 15:02:49 +02:00
dummy_seclabel Update copyright for 2022 2022-01-07 19:04:57 -05:00
libpq_pipeline Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
plsample Extend plsample example to include a trigger handler. 2022-04-07 18:26:20 -04:00
snapshot_too_old Improve display of query results in isolation tests. 2021-06-23 11:13:00 -04:00
spgist_name_ops pg_upgrade: Preserve relfilenodes and tablespace OIDs. 2022-01-17 13:40:27 -05:00
ssl_passphrase_callback Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
test_bloomfilter Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_ddl_deparse Fix DDL deparse of CREATE OPERATOR CLASS 2022-05-20 18:52:55 +02:00
test_extensions Fix use-after-free bug with event triggers in an extension script 2020-09-15 21:03:14 -03:00
test_ginpostinglist Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_integerset Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_misc Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
test_oat_hooks Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
test_parser Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_pg_dump Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
test_predtest Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_rbtree Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_regex Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_rls_hooks Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
test_shm_mq Update copyright for 2022 2022-01-07 19:04:57 -05:00
unsafe_tests Remove portability hazard in unsafe_tests/sql/guc_privs.sql. 2022-05-20 13:42:02 -04:00
worker_spi pgstat: store statistics in shared memory. 2022-04-06 21:29:46 -07:00
Makefile Add a test module for Object Access hooks 2022-03-22 10:28:31 -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.