postgresql/src/bin/scripts
Michael Paquier 5f3840370b Refactor parallelization processing code in src/bin/scripts/
The existing facility of vacuumdb to handle parallel connections into a
given database with an authentication set is moved to a common file in
src/bin/scripts/, named scripts_parallel.c.  This introduces a set of
routines to initialize, wait and terminate a set of connections,
simplifying a bit the code of vacuumdb on the way.  More routines
related to result handling and database connection are moved to
common.c.

The initial plan is to use that for reindexdb, but it could be applied
to other tools like clusterdb.

While on it, clean up a set of variables "progname" which were defined
as routine arguments for error messages.  Since most of the callers have
switched to pg_log_error() and such there is no need for this variable.

Author: Julien Rouhaud
Reviewed-by: Michael Paquier, Álvaro Herrera
Discussion: https://postgr.es/m/CAOBaU_YrnH_Jqo46NhaJ7uRBiWWEcS40VNRQxgFbqYo9kApUsg@mail.gmail.com
2019-07-19 09:31:58 +09:00
..
po Translation updates 2019-06-17 15:30:20 +02:00
t Initial pgperltidy run for v12. 2019-05-22 13:36:19 -04:00
.gitignore Remove createlang and droplang 2017-03-23 14:16:45 -04:00
clusterdb.c Refactor parallelization processing code in src/bin/scripts/ 2019-07-19 09:31:58 +09:00
common.c Refactor parallelization processing code in src/bin/scripts/ 2019-07-19 09:31:58 +09:00
common.h Refactor parallelization processing code in src/bin/scripts/ 2019-07-19 09:31:58 +09:00
createdb.c Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
createuser.c Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
dropdb.c Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
dropuser.c Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
Makefile Refactor parallelization processing code in src/bin/scripts/ 2019-07-19 09:31:58 +09:00
nls.mk Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_isready.c Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
reindexdb.c Refactor parallelization processing code in src/bin/scripts/ 2019-07-19 09:31:58 +09:00
scripts_parallel.c Refactor parallelization processing code in src/bin/scripts/ 2019-07-19 09:31:58 +09:00
scripts_parallel.h Refactor parallelization processing code in src/bin/scripts/ 2019-07-19 09:31:58 +09:00
vacuumdb.c Refactor parallelization processing code in src/bin/scripts/ 2019-07-19 09:31:58 +09:00