Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit58ebe96

Browse files
committed
Document concurrent indexes waiting on each other
Because regular CREATE INDEX commands are independent, and there's nological data dependency, it's not immediately obvious that transactionsheld by concurrent index builds on one table will block the second phaseof concurrent index creation on an unrelated table, so document thiscaveat.Backpatch this all the way back. In branch master, mention that onlysome indexes are involved.Author: James Coleman <jtc331@gmail.com>Reviewed-by: David Johnston <david.g.johnston@gmail.com>Discussion:https://postgr.es/m/CAAaqYe994=PUrn8CJZ4UEo_S-FfRr_3ogERyhtdgHAb2WG_Ufg@mail.gmail.com
1 parent4823c4f commit58ebe96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎doc/src/sgml/ref/create_index.sgml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,10 @@ CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ [ IF NOT EXISTS ] <replaceable class=
604604
wait for existing transactions that have modified the table to terminate.
605605
After the second scan, the index build must wait for any transactions
606606
that have a snapshot (see <xref linkend="mvcc"/>) predating the second
607-
scan to terminate. Then finally the index can be marked ready for use,
607+
scan to terminate, including transactions used by any phase of concurrent
608+
index builds on other tables, if the indexes involved are partial or have
609+
columns that are not simple column references.
610+
Then finally the index can be marked ready for use,
608611
and the <command>CREATE INDEX</command> command terminates.
609612
Even then, however, the index may not be immediately usable for queries:
610613
in the worst case, it cannot be used as long as transactions exist that

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp