postgresql/src/test/modules
Alvaro Herrera ad08006ba0 Fix event triggers for partitioned tables
Index DDL cascading on partitioned tables introduced a way for ALTER
TABLE to be called reentrantly.  This caused an an important deficiency
in event trigger support to be exposed: on exiting the reentrant call,
the alter table state object was clobbered, causing a crash when the
outer alter table tries to finalize its processing.  Fix the crash by
creating a stack of event trigger state objects.  There are still ways
to cause things to misbehave (and probably other crashers) with more
elaborate tricks, but at least it now doesn't crash in the obvious
scenario.

Backpatch to 9.5, where DDL deparsing of event triggers was introduced.

Reported-by: Marco Slot
Authors: Michaël Paquier, Álvaro Herrera
Discussion: https://postgr.es/m/CANNhMLCpi+HQ7M36uPfGbJZEQLyTy7XvX=5EFkpR-b1bo0uJew@mail.gmail.com
2018-10-06 19:17:46 -03:00
..
brin perltidy: Add option --nooutdent-long-quotes 2018-04-27 11:37:43 -04:00
commit_ts Rework activation of commit timestamps during recovery 2018-09-26 10:25:54 +09:00
dummy_seclabel Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
snapshot_too_old Add a regression test for snapshot too old with hash indexes. 2017-03-15 10:53:07 -04:00
test_bloomfilter Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
test_ddl_deparse Fix event triggers for partitioned tables 2018-10-06 19:17:46 -03:00
test_extensions psql: Use more consistent capitalization of some output headings 2017-06-13 14:41:14 -04:00
test_parser Update copyright for 2018 2018-01-02 23:30:12 -05:00
test_pg_dump Restrict vertical tightness to parentheses in Perl code 2018-05-09 10:14:46 -04:00
test_predtest Improve predtest.c's handling of cases with NULL-constant inputs. 2018-03-21 18:30:46 -04:00
test_rbtree Update copyright for 2018 2018-01-02 23:30:12 -05:00
test_rls_hooks Create an RTE field to record the query's lock mode for each relation. 2018-09-30 13:55:51 -04:00
test_shm_mq Use a ResourceOwner to track buffer pins in all cases. 2018-07-18 12:15:16 -04:00
worker_spi Fix worker_spi for new parameter to initialize connection 2018-04-05 19:14:50 +02:00
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
README Add README in src/test and src/test/modules 2016-02-25 21:08:32 -03: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".

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.