vacuumdb: Fix comment for vacuum_one_database().
authorNathan Bossart <[email protected]>
Fri, 17 Jan 2025 21:23:14 +0000 (15:23 -0600)
committerNathan Bossart <[email protected]>
Fri, 17 Jan 2025 21:23:14 +0000 (15:23 -0600)
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

index 170f34d92744bdebb38f37a2877cedf051792ada..3dc428674ae0cd6c9c1a9791f60114ed20d9333d 100644 (file)
@@ -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,