forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5ab892c
committed
Add support for --jobs in reindexdb
When doing a schema-level or a database-level operation, a list ofrelations to build is created which gets processed in parallel usingmultiple connections, based on the recent refactoring for parallel slotsin src/bin/scripts/. System catalogs are processed first in aserialized fashion to prevent deadlocks, followed by the rest done inparallel.This new option is not compatible with --system as reindexing systemcatalogs in parallel can lead to deadlocks, and with --index as there isno conflict handling for indexes rebuilt in parallel depending in thesame relation.Author: Julien RouhaudReviewed-by: Sergei Kornilov, Michael PaquierDiscussion:https://postgr.es/m/CAOBaU_YrnH_Jqo46NhaJ7uRBiWWEcS40VNRQxgFbqYo9kApUsg@mail.gmail.com1 parent4552c0f commit5ab892c
File tree
4 files changed
+432
-53
lines changed- doc/src/sgml/ref
- src/bin/scripts
- t
4 files changed
+432
-53
lines changedLines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
169 | 192 |
| |
170 | 193 |
| |
171 | 194 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
|
0 commit comments
Comments
(0)