Re: A few new options for vacuumdb
Nathan Bossart <bossartn@amazon.com>
From: "Bossart, Nathan" <bossartn@amazon.com>
To: Michael Paquier <michael@paquier.xyz>,
Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-01-09T18:42:40Z
Lists: pgsql-hackers
On 1/8/19, 10:34 PM, "Michael Paquier" <michael@paquier.xyz> wrote: > On Wed, Jan 09, 2019 at 10:33:00AM +0900, Masahiko Sawada wrote: >> Since pg_(total)_relation_size() returns 0 for parent table the >> specifying the parent table to vacuumdb with --min-relation-size >> always does nothing. Maybe we will need to deal with this case when a >> function returning whole partitoned table size is introduced. > > Good point. I am not sure if we want to go down to having a size > function dedicated to partitions especially as this would just now be > a wrapper around pg_partition_tree(), but the size argument with > partitioned tables is something to think about. If we cannot sort out > this part cleanly, perhaps we could just focus on the age-ing > parameters and the other ones first? It seems to me that what is > proposed on this thread has value, so we could shave things and keep > the essential, and focus on what we are sure about for simplicity. Sounds good. I'll leave out --min-relation-size for now. Nathan
Commits
-
Add --min-xid-age and --min-mxid-age options to vacuumdb
- 00d1e88d3668 12.0 landed
-
Do not filter by relkind in vacuumdb's catalog query if --table is used
- b8f73df0f845 12.0 landed
-
Use catalog query to discover tables to process in vacuumdb
- e0c2933a767c 12.0 landed
-
Add TAP tests for vacuumdb with column lists
- 0803b0ae1ed6 12.0 landed
-
Make vacuumdb test regex more modular for its query output
- adaaacae658e 12.0 landed
-
Adjust documentation for vacuumdb --disable-page-skipping
- efab708997dc 12.0 landed
-
Add --disable-page-skipping and --skip-locked to vacuumdb
- 354e95d1f212 12.0 landed