postgresql/src/bin
Noah Misch dde966efb2 Avoid race in RelationBuildDesc() affecting CREATE INDEX CONCURRENTLY.
CIC and REINDEX CONCURRENTLY assume backends see their catalog changes
no later than each backend's next transaction start.  That failed to
hold when a backend absorbed a relevant invalidation in the middle of
running RelationBuildDesc() on the CIC index.  Queries that use the
resulting index can silently fail to find rows.  Fix this for future
index builds by making RelationBuildDesc() loop until it finishes
without accepting a relevant invalidation.  It may be necessary to
reindex to recover from past occurrences; REINDEX CONCURRENTLY suffices.
Back-patch to 9.6 (all supported versions).

Noah Misch and Andrey Borodin, reviewed (in earlier versions) by Andres
Freund.

Discussion: https://postgr.es/m/20210730022548.GA1940096@gust.leadboat.com
2021-10-23 18:36:42 -07:00
..
initdb Update our mapping of Windows time zone names some more. 2021-10-04 14:52:17 -04:00
pg_amcheck Remove unstable pg_amcheck tests. 2021-10-14 14:50:25 -07:00
pg_archivecleanup Add more $Test::Builder::Level in the TAP tests 2021-10-12 11:16:20 +09:00
pg_basebackup Fix sscanf limits in pg_basebackup and pg_dump 2021-10-19 12:59:50 +02:00
pg_checksums Translation updates 2021-09-20 16:23:13 +02:00
pg_config Translation updates 2021-09-20 16:23:13 +02:00
pg_controldata Translation updates 2021-09-20 16:23:13 +02:00
pg_ctl Translation updates 2021-09-20 16:23:13 +02:00
pg_dump pg_dump: fix mis-dumping of non-global default privileges. 2021-10-22 15:22:25 -04:00
pg_resetwal Translation updates 2021-09-20 16:23:13 +02:00
pg_rewind Translation updates 2021-09-20 16:23:13 +02:00
pg_test_fsync Translation updates 2021-09-20 16:23:13 +02:00
pg_test_timing Translation updates 2021-09-20 16:23:13 +02:00
pg_upgrade Fix tests of pg_upgrade across different major versions 2021-10-13 09:22:23 +09:00
pg_verifybackup Add more $Test::Builder::Level in the TAP tests 2021-10-12 11:16:20 +09:00
pg_waldump Translation updates 2021-09-20 16:23:13 +02:00
pgbench Avoid race in RelationBuildDesc() affecting CREATE INDEX CONCURRENTLY. 2021-10-23 18:36:42 -07:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql Add more $Test::Builder::Level in the TAP tests 2021-10-12 11:16:20 +09:00
scripts Translation updates 2021-09-20 16:23:13 +02:00
Makefile Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00