postgresql/src/test/modules
Tom Lane b23cd185fd Remove logic for converting a table to a view.
Up to now we have allowed manual creation of an ON SELECT rule on
a table to convert it into a view.  That was never anything but a
horrid, error-prone hack though.  pg_dump used to rely on that
behavior to deal with cases involving circular dependencies,
where a dependency loop could be broken by separating the creation
of a view from installation of its ON SELECT rule.  However, we
changed pg_dump to use CREATE OR REPLACE VIEW for that in commit
d8c05aff5 (which was later back-patched as far as 9.4), so there's
not a good argument anymore for continuing to support the behavior.

The proximate reason for axing it now is that we found that the
new statistics code has failure modes associated with the relkind
change caused by this behavior.  We'll patch around that in v15,
but going forward it seems like a better idea to get rid of the
need to support relkind changes.

Discussion: https://postgr.es/m/CALDaNm2yXz+zOtv7y5zBd5WKT8O0Ld3YxikuU3dcyCvxF7gypA@mail.gmail.com
2022-12-02 12:14:32 -05:00
..
brin meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
commit_ts meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
delay_execution Fix outdated code reference 2022-10-12 09:54:02 +02:00
dummy_index_am meson: Add windows resource files 2022-10-05 09:56:05 -07:00
dummy_seclabel meson: Add windows resource files 2022-10-05 09:56:05 -07:00
libpq_pipeline libpq: Reset singlerow flag correctly in pipeline mode 2022-10-14 19:06:26 +02:00
plsample meson: Add windows resource files 2022-10-05 09:56:05 -07:00
snapshot_too_old meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
spgist_name_ops meson: Add windows resource files 2022-10-05 09:56:05 -07:00
ssl_passphrase_callback Make finding openssl program a configure or meson option 2022-10-20 21:05:42 +02:00
test_bloomfilter meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_copy_callbacks Fix compilation warning in test_copy_callbacks 2022-10-12 08:45:01 +09:00
test_custom_rmgrs Fix test in ae168c794f, per buildfarm. 2022-11-15 20:07:18 -08:00
test_ddl_deparse Remove logic for converting a table to a view. 2022-12-02 12:14:32 -05:00
test_extensions meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
test_ginpostinglist meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_integerset Fix final warnings produced by -Wshadow=compatible-local 2022-10-07 13:13:27 +13:00
test_lfind meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_misc Use installed postgresql.conf.sample for GUC sanity TAP test 2022-11-13 09:07:53 -05:00
test_oat_hooks Disable debug_discard_caches in test_oat_hooks test. 2022-11-19 13:42:53 -05:00
test_parser meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_pg_dump Switch pg_dump to use compression specifications 2022-12-02 10:45:02 +09:00
test_predtest meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_rbtree meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_regex meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_rls_hooks meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_shm_mq meson: Add windows resource files 2022-10-05 09:56:05 -07:00
test_slru Remove unneeded include in test_slru.c 2022-11-17 16:00:09 +09:00
unsafe_tests meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
worker_spi meson: Add windows resource files 2022-10-05 09:56:05 -07:00
Makefile Add test module for SLRUs 2022-11-16 09:52:21 +09:00
meson.build Add test module for SLRUs 2022-11-16 09:52:21 +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.