diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-08-07 14:30:41 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-08-07 14:30:47 -0400 |
commit | 6f0b632f083ba08fabb6c496caf733802cee9d2e (patch) | |
tree | d726cf61fb7e44cf7c3a857be0dd07428043714b /contrib/test_decoding/test_decoding.c | |
parent | 3df92bbd1dba98f72e3f005406463b0718193a0f (diff) | |
download | postgresql-6f0b632f083ba08fabb6c496caf733802cee9d2e.tar.gz postgresql-6f0b632f083ba08fabb6c496caf733802cee9d2e.zip |
Support testing of cases where table schemas change after planning.
We have various cases where we allow DDL on tables to be performed with
less than full AccessExclusiveLock. This requires concurrent queries
to be able to cope with the DDL change mid-flight, but up to now we had
no repeatable way to test such cases. To improve that, invent a test
module that allows halting a backend after planning and then resuming
execution once we've done desired actions in another session. (The same
approach could be used to inject delays in other places, if there's a
suitable hook available.)
This commit includes a single test case, which is meant to exercise the
previously-untestable ExecCreatePartitionPruneState code repaired by
commit 7a980dfc6. We'd probably not bother with this if that were the
only foreseen benefit, but I expect additional test cases will use this
infrastructure in the future.
Test module by Andy Fan, partition-addition test case by me.
Discussion: https://postgr.es/m/20200802181131.GA27754@telsasoft.com
Diffstat (limited to 'contrib/test_decoding/test_decoding.c')
0 files changed, 0 insertions, 0 deletions