Skip to content

Implement a way to build an index without blocking concurrent data modifications - #9106

Open
hvlad wants to merge 2 commits into
masterfrom
work/gh-7967-concurr-index
Open

Implement a way to build an index without blocking concurrent data modifications#9106
hvlad wants to merge 2 commits into
masterfrom
work/gh-7967-concurr-index

Conversation

@hvlad

@hvlad hvlad commented Jul 25, 2026

Copy link
Copy Markdown
Member

No description provided.

@hvlad hvlad self-assigned this Jul 25, 2026
@AlexPeshkoff

AlexPeshkoff commented Jul 27, 2026 via email

Copy link
Copy Markdown
Member

@hvlad

hvlad commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

Vlad, there is one main problem with your approach - option CONCURRENTLY
silently affects ability to have NOT VALIDATED index instead fatal error
for unique indices. I see the following problems:

  • users often miss warnings, i.e. once upon a time using CONCURRENTLY
    option they can get active but not validated index and do not know about
    it - specially taking into an account that new records are forced to be
    unique;

It depends on tool used. We can't control third party tools.
Our isql show warnings, while it is hard to distinguish them from errors.

From the other side: the concurrent index creation is a new feature with a new
syntax and its behaviour re. unique indices is explicitly documented. I.e. if one
uses CONCURRENTLY, it is supposed (s)he read the docs before it ;)

  • correct logic with hard job, done for index creation, that should
    better be not repeated applies to traditional (without option
    CONCURRENTLY) index creation too, but getting NOT VALIDATED index is not
    supported in this case.

What about adding one more option that controls ability to get not
validated index? As far as I can see it's not dependent from concurrent
creation and may be used separately.

Good idea, I support it. Could be useful for restore too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a way to build an index without blocking concurrent data modifications

2 participants