diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-07-27 22:21:18 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-07-27 22:21:18 +0900 |
commit | 5ab892c391c6bc54a00e7a8de5cab077cabace6a (patch) | |
tree | 5235f408305fe66847aa12f5fe434f6dfb197d0e /src/backend/utils/adt/arrayfuncs.c | |
parent | 4552c0f566667160ab3eeaf1620ebb969c1e7eb0 (diff) | |
download | postgresql-5ab892c391c6bc54a00e7a8de5cab077cabace6a.tar.gz postgresql-5ab892c391c6bc54a00e7a8de5cab077cabace6a.zip |
Add support for --jobs in reindexdb
When doing a schema-level or a database-level operation, a list of
relations to build is created which gets processed in parallel using
multiple connections, based on the recent refactoring for parallel slots
in src/bin/scripts/. System catalogs are processed first in a
serialized fashion to prevent deadlocks, followed by the rest done in
parallel.
This new option is not compatible with --system as reindexing system
catalogs in parallel can lead to deadlocks, and with --index as there is
no conflict handling for indexes rebuilt in parallel depending in the
same relation.
Author: Julien Rouhaud
Reviewed-by: Sergei Kornilov, Michael Paquier
Discussion: https://postgr.es/m/CAOBaU_YrnH_Jqo46NhaJ7uRBiWWEcS40VNRQxgFbqYo9kApUsg@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions