1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00
Files
postgres/src/include
Amit Kapila af48a67026 Fix tuple search during apply after concurrent index DDL.
When searching the local relation by index, the apply worker can use the
first match only if the index is the relation's replica identity or
primary key. Otherwise, every match must be compared with the search slot.

Only the index OID was saved in the relation map, so this was determined
again during the search. Concurrent DROP INDEX or REINDEX can change the
index status between these two checks, causing the tuple search to fail
and the change to be silently skipped as an update_missing conflict.

Fix this by recording the answer as idxisreplident in the relation map
entry and avoid getting it second time in FindReplTupleInLocalRel() and
RelationFindReplTupleByIndex().

Oversight in 89e46da5e5.

Author: Mikhail Nikalayeu <mihailnikalayeu@gmail.com>
Author: vignesh C <vignesh21@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Zhijie Hou <houzj.fnst@fujitsu.com>
Discussion: https://postgr.es/m/CADzfLwUJovFcnknCC9wjZKECX9xecgnGzC2r2TMV8h4QDD_jwQ@mail.gmail.com
Backpatch-through: 16, where it was introduced
2026-09-28 06:57:50 -04:00
..
2025-01-01 11:21:55 -05:00
2025-01-01 11:21:55 -05:00
2025-03-10 13:36:04 +13:00
2025-01-01 11:21:55 -05:00
2025-01-01 11:21:55 -05:00
2025-09-16 07:23:50 +02:00
2026-08-18 13:19:59 -07:00
2025-01-01 11:21:55 -05:00
2025-01-15 18:57:53 +01:00
2025-01-01 11:21:55 -05:00
2025-01-15 18:57:53 +01:00
2025-01-15 18:57:53 +01:00
2025-01-15 18:57:53 +01:00
2025-01-15 18:57:53 +01:00
2025-01-01 11:21:55 -05:00
2025-01-01 11:21:55 -05:00