mirror of
https://github.com/postgres/postgres.git
synced 2025-11-28 11:44:57 +03:00
Transfer state pertaining to pending REINDEX operations to workers.
This will allow the pending patch for parallel CREATE INDEX to work on system catalogs, and to provide the same level of protection against use of user indexes while they are being rebuilt that we have for non-parallel CREATE INDEX. Patch by me, reviewed by Peter Geoghegan. Discussion: http://postgr.es/m/CA+TgmoYN-YQU9JsGQcqFLovZ-C+Xgp1_xhJQad=cunGG-_p5gg@mail.gmail.com Discussion: http://postgr.es/m/CAH2-Wzkv4UNkXYhqQRqk-u9rS7h5c-4cCW+EqQ8K_WSeS43aZg@mail.gmail.com
This commit is contained in:
@@ -122,6 +122,9 @@ worker. This includes:
|
||||
values are restored, this incidentally sets SessionUserId and OuterUserId
|
||||
to the correct values. This final step restores CurrentUserId.
|
||||
|
||||
- State related to pending REINDEX operations, which prevents access to
|
||||
an index that is currently being rebuilt.
|
||||
|
||||
To prevent undetected or unprincipled deadlocks when running in parallel mode,
|
||||
this could should eventually handle heavyweight locks in some way. This is
|
||||
not implemented yet.
|
||||
|
||||
Reference in New Issue
Block a user