aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/clusterdb.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2023-07-28 10:07:44 -0700
committerNathan Bossart <nathan@postgresql.org>2023-07-28 10:07:44 -0700
commit6d982e3b3bd4a3a26d18639b05ca1535c260e669 (patch)
tree67608b4aed256ad5f77fba03fc81d047e58aa566 /src/bin/scripts/clusterdb.c
parente055b6be7ebb0de35570102327717c99d91fe540 (diff)
downloadpostgresql-6d982e3b3bd4a3a26d18639b05ca1535c260e669.tar.gz
postgresql-6d982e3b3bd4a3a26d18639b05ca1535c260e669.zip
Harmonize password reuse in vacuumdb, clusterdb, and reindexdb.
Commits 83dec5a712 and ff402ae11b taught vacuumdb to reuse passwords instead of prompting repeatedly. However, the docs still warn about repeated prompts, and this improvement was not applied to clusterdb and reindexdb. This commit allows clusterdb and reindexdb to reuse passwords just like vacuumdb does, and it expunges the aforementioned warnings from the docs. Reviewed-by: Gurjeet Singh, Zhang Mingli Discussion: https://postgr.es/m/20230628045741.GA1813397%40nathanxps13
Diffstat (limited to 'src/bin/scripts/clusterdb.c')
-rw-r--r--src/bin/scripts/clusterdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/scripts/clusterdb.c b/src/bin/scripts/clusterdb.c
index 58a774013b1..65428031c74 100644
--- a/src/bin/scripts/clusterdb.c
+++ b/src/bin/scripts/clusterdb.c
@@ -195,7 +195,7 @@ cluster_one_database(const ConnParams *cparams, const char *table,
PGconn *conn;
- conn = connectDatabase(cparams, progname, echo, false, false);
+ conn = connectDatabase(cparams, progname, echo, false, true);
initPQExpBuffer(&sql);