From 6a9b2a631aa3dbac5b351cd0c45631cbc6e8d19e Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Fri, 17 Jan 2025 15:23:14 -0600 Subject: [PATCH] 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. --- src/bin/scripts/vacuumdb.c | 5 ++--- 1 file 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, -- 2.39.5