Re: Is CREATE INDEX dependent on the session? - Mailing list pgsql-docs

From Laurenz Albe
Subject Re: Is CREATE INDEX dependent on the session?
Date
Msg-id e50d1bc392eb97bdd161603b3a2c802c27a82c2c.camel@cybertec.at
Whole thread Raw
In response to Is CREATE INDEX dependent on the session?  (Ilya Priven <ilya.konstantinov@gmail.com>)
Responses Re: Is CREATE INDEX dependent on the session?
List pgsql-docs
On Wed, 2023-09-27 at 11:23 -0400, Ilya Priven wrote:
> Would it warrant a clarification in the documentation:
> - Whether CREATE INDEX is aborted if the session is disconnected, assuming it's not in a transaction?

It is aborted as soon as the server realizes that the client is gone, which may
take a while (see the keepalive parameters and "client_connection_check_interval").

> - Ditto for CREATE INDEX CONCURRENTLY?

The answer is the same.
Note that if CREATE INDEX CONCURRENTLY is interrupted, you are left with an
INVALID index that you have to delete later.

> - Whether CREATE INDEX CONCURRENTLY "returns" immediately or blocks the session until it's created?

It blocks until the index has been created.

Do you want to propose a patch?

Yours,
Laurenz Albe



pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Suggestion for deprecated spellings
Next
From: Daniel Gustafsson
Date:
Subject: Re: Hyperlinks for source file references