Re: Revisiting {CREATE INDEX, REINDEX} CONCURRENTLY improvements

From: Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com>
To: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
Cc: Josh Kupershmidt <schmiddy(at)gmail(dot)com>, Antonin Houska <ah(at)cybertec(dot)at>, Hannu Krosing <hannuk(at)google(dot)com>, Sergey Sargsyan <sergey(dot)sargsyan(dot)2001(at)gmail(dot)com>, Álvaro Herrera <alvherre(at)kurilemu(dot)de>, Andres Freund <andres(at)anarazel(dot)de>, Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Andrey Borodin <amborodin86(at)gmail(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com>
Subject: Re: Revisiting {CREATE INDEX, REINDEX} CONCURRENTLY improvements
Date: 2026-10-17 17:57:00
Message-ID: CADzfLwUykLAjNNp0cMNMErMmb6+AJrDTiRuvvkA0dUOrzX3x1g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Matthias,

I have reworked patch 0007 to use the same snapshot helpers and
interval setting as [1]. The two series still work independently.

Validation now maintains an active snapshot throughout the process,
replacing it between phases and heap pages (100ms by default). The new
snapshot is registered before releasing the old one.

Note that when combining the series, TIDs skipped by the build's
duplicate-check budget must also reach validation, as STIR alone may
miss them. I have added a TODO for this.

[1]: https://commitfest.postgresql.org/patch/6401/

Best regards,
Mikhail

Attachment Content-Type Size
v39-0007-Refresh-snapshots-during-concurrent-index-valida.patch application/octet-stream 45.9 KB
v39-0004-Use-auxiliary-indexes-for-concurrent-index-opera.patch application/octet-stream 104.2 KB
v39-0006-Optimize-auxiliary-index-handling.patch application/octet-stream 3.0 KB
v39-0003-Add-Datum-storage-support-to-tuplestore.patch application/octet-stream 23.1 KB
v39-0005-Track-and-drop-auxiliary-indexes-in-DROP-REINDEX.patch application/octet-stream 38.0 KB
v39-0002-Add-STIR-access-method-and-validate_index-flag-i.patch application/octet-stream 38.0 KB
v39-0001-Add-stress-tests-for-concurrent-index-builds.patch application/octet-stream 12.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sehrope Sarkuni 2026-10-17 18:09:55 Re: Add Dockerfile for OSS Scanner
Previous Message Noah Misch 2026-10-17 16:48:02 Re: Add Dockerfile for OSS Scanner