summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Bossart2025-01-17 21:23:14 +0000
committerNathan Bossart2025-01-17 21:23:14 +0000
commit6a9b2a631aa3dbac5b351cd0c45631cbc6e8d19e (patch)
treea1feb6fdcdc4bb9ce7eba827c0d16a8afa4c8f8f
parent86e4efc52b664b60f9494e062bbf0454cabcb61f (diff)
vacuumdb: Fix comment for vacuum_one_database().
Since commit e0c2933a76, vacuum_one_database() always uses a catalog query to discover the tables to process, but this comment still notes the special case for which we used a catalog query before that commit. Let's just remove that note. Also, commit 7781f4e3e7 renamed the "tables" parameter to "objects" but missed updating this comment. This commit fixes that as well.
-rw-r--r--src/bin/scripts/vacuumdb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c
index 170f34d927..3dc428674a 100644
--- a/src/bin/scripts/vacuumdb.c
+++ b/src/bin/scripts/vacuumdb.c
@@ -461,15 +461,14 @@ escape_quotes(const char *src)
/*
* vacuum_one_database
*
- * Process tables in the given database. If the 'tables' list is empty,
+ * Process tables in the given database. If the 'objects' list is empty,
* process all tables in the database.
*
* Note that this function is only concerned with running exactly one stage
* when in analyze-in-stages mode; caller must iterate on us if necessary.
*
* If concurrentCons is > 1, multiple connections are used to vacuum tables
- * in parallel. In this case and if the table list is empty, we first obtain
- * a list of tables from the database.
+ * in parallel.
*/
static void
vacuum_one_database(ConnParams *cparams,