From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron Johnson <ronljohnsonjr@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: vacuumdb and a long list of tables
Date: Sun, 23 Feb 2025 15:21:35 -0500
Message-ID: <1190571.1740342095@sss.pgh.pa.us> (raw)
In-Reply-To: <CANzqJaBh0AGfvpjN6ZGyT23BR9GS=_Me=B_GMCO8JjaijPOOpA@mail.gmail.com>
References: <CANzqJaBh0AGfvpjN6ZGyT23BR9GS=_Me=B_GMCO8JjaijPOOpA@mail.gmail.com>
Ron Johnson <ronljohnsonjr@gmail.com> writes:
> Is there any specific order by which "vacuumdb -t t1 -t t2 -t t3 ..."
> processes those tables?
A quick look at the source code finds
appendPQExpBufferStr(&catalog_query, " ORDER BY c.relpages DESC;");
so apparently it's trying to process them in descending size order,
although this doesn't account for indexes or toast tables.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: vacuumdb and a long list of tables
In-Reply-To: <1190571.1740342095@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox