1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-22 02:52:08 +03:00

Restore some comments lost during 15732b34e8

Michael Paquier
This commit is contained in:
Alvaro Herrera
2014-01-03 13:22:03 -03:00
parent a3b4aeecfe
commit 1a3e82a7f9
2 changed files with 9 additions and 6 deletions

View File

@ -651,9 +651,10 @@ DefineIndex(IndexStmt *stmt,
* for an overview of how this works)
*
* Now we must wait until no running transaction could have the table open
* with the old list of indexes. Note we do not need to worry about xacts
* that open the table for writing after this point; they will see the new
* index when they open it.
* with the old list of indexes. Use ShareLock to consider running
* transactions that hold locks that permit writing to the table. Note we
* do not need to worry about xacts that open the table for writing after
* this point; they will see the new index when they open it.
*
* Note: the reason we use actual lock acquisition here, rather than just
* checking the ProcArray and sleeping, is that deadlock is possible if