Re: Is CREATE INDEX dependent on the session?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Is CREATE INDEX dependent on the session?
Дата
Msg-id e50d1bc392eb97bdd161603b3a2c802c27a82c2c.camel@cybertec.at
обсуждение исходный текст
Ответ на Is CREATE INDEX dependent on the session?  (Ilya Priven <ilya.konstantinov@gmail.com>)
Ответы Re: Is CREATE INDEX dependent on the session?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Suggestion for deprecated spellings
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Hyperlinks for source file references