Remove unstable test suite added by 525392d57
authorAmit Langote <amitlan@postgresql.org>
Sat, 22 Feb 2025 06:19:23 +0000 (15:19 +0900)
committerAmit Langote <amitlan@postgresql.org>
Sat, 22 Feb 2025 06:19:23 +0000 (15:19 +0900)
commit4f1b6e5bb4fe9bc74395d30d689b28e9cda654a5
tree948fdd433e962517815fdaa77140343ea999efac
parentf8d7f29b3e81db59b95e4b5baaa6943178c89fd8
Remove unstable test suite added by 525392d57

The 'cached-plan-inval' test suite, introduced in 525392d57 under
src/test/modules/delay_execution, aimed to verify that cached plan
invalidation triggers replanning after deferred locks are taken.
However, its ExecutorStart_hook-based approach relies on lock timing
assumptions that, in retrospect, are fragile. This instability was
exposed by failures on BF animal trilobite, which builds with
CLOBBER_CACHE_ALWAYS.

One option was to dynamically disable the cache behavior that causes
the test suite to fail by setting "debug_discard_caches = 0", but it
seems better to remove the suite. The risk of future failures due to
other cache flush hazards outweighs the benefit of catching real
breakage in the backend behavior it tests.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/2990641.1740117879@sss.pgh.pa.us
src/test/modules/delay_execution/Makefile
src/test/modules/delay_execution/delay_execution.c
src/test/modules/delay_execution/expected/cached-plan-inval.out [deleted file]
src/test/modules/delay_execution/meson.build
src/test/modules/delay_execution/specs/cached-plan-inval.spec [deleted file]