postgresql/src
Álvaro Herrera 8a47d9ee7f
Fix test_misc/010_index_concurrently_upsert for cache-clobbering builds
The test script added by commit e1c971945d failed to handle the case
of cache-clobbering builds (CLOBBER_CACHE_ALWAYS and
CATCACHE_FORCE_RELEASE) properly -- it would only exit a loop on
timeout, which is slow, and unfortunate because I (Álvaro) increased the
timeout for that loop to the complete default TAP test timeout, causing
the buildfarm to report the whole test run as a timeout failure.  We can
be much quicker: exit the loop as soon as the backend is seen as waiting
on the injection point.

In this commit we still reduce the timeout (of that loop and a nearby
one just to be safe) to half of the default.

I (Álvaro) had also changed Mihail's "sleep(1)" to "sleep(0.1)", which
apparently turns a 1s sleep into a 0s sleep, because Perl -- probably
making this a busy loop.  Use Time::HiRes::usleep instead, like we do in
other tests.

Author: Mihail Nikalayeu <mihailnikalayeu@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/CADzfLwWOVyJygX6BFuyuhTKkJ7uw2e8OcVCDnf6iqnOFhMPE%2BA%40mail.gmail.com
2026-01-13 10:03:33 +01:00
..
backend Improve some comment wording and grammar in extension.c 2026-01-13 12:33:08 +07:00
bin Avoid casting void * function arguments 2026-01-12 16:12:56 +01:00
common Fix misc typos, mostly in comments 2026-01-08 18:10:08 +02:00
fe_utils Add data type oid8, 64-bit unsigned identifier 2026-01-07 11:37:00 +09:00
include heapam: Add batch mode mvcc check and use it in page mode 2026-01-12 13:22:04 -05:00
interfaces Fix misc typos, mostly in comments 2026-01-08 18:10:08 +02:00
makefiles Decouple C++ support in Meson's PGXS from LLVM enablement 2026-01-09 10:25:02 +01:00
pl Update copyright for 2026 2026-01-01 13:24:10 -05:00
port strnlen() is now required 2026-01-08 08:51:20 +01:00
template Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
test Fix test_misc/010_index_concurrently_upsert for cache-clobbering builds 2026-01-13 10:03:33 +01:00
timezone Update copyright for 2026 2026-01-01 13:24:10 -05:00
tools heapam: Add batch mode mvcc check and use it in page mode 2026-01-12 13:22:04 -05:00
tutorial Update copyright for 2026 2026-01-01 13:24:10 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in libpq: Refactor logic checking for exit() in shared library builds 2025-12-09 10:39:08 +09:00
Makefile.shlib Use exported symbols list on macOS for loadable modules as well 2025-06-10 07:04:43 +02:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00