postgresql/src/test/modules/test_misc
Heikki Linnakangas af8cd1639a Fix catcache invalidation of a list entry that's being built
If a new catalog tuple is inserted that belongs to a catcache list
entry, and cache invalidation happens while the list entry is being
built, the list entry might miss the newly inserted tuple.

To fix, change the way we detect concurrent invalidations while a
catcache entry is being built. Keep a stack of entries that are being
built, and apply cache invalidation to those entries in addition to
the real catcache entries. This is similar to the in-progress list in
relcache.c.

Back-patch to all supported versions.

Reviewed-by: Noah Misch
Discussion: https://www.postgresql.org/message-id/2234dc98-06fe-42ed-b5db-ac17384dc880@iki.fi
2025-01-14 14:28:49 +02:00
..
t Fix catcache invalidation of a list entry that's being built 2025-01-14 14:28:49 +02:00
.gitignore Avoid using INFO elevel for what are fundamentally debug messages. 2019-09-07 19:03:11 -04:00
Makefile Simplify makefiles exporting twice enable_injection_points 2024-09-04 08:05:44 +09:00
meson.build Fix catcache invalidation of a list entry that's being built 2025-01-14 14:28:49 +02:00
README Avoid using INFO elevel for what are fundamentally debug messages. 2019-09-07 19:03:11 -04:00

This directory doesn't actually contain any extension module.

What it is is a home for otherwise-unclassified TAP tests that exercise core
server features.  We might equally well have called it, say, src/test/misc.