Re: do only critical work during single-user vacuum? - Mailing list pgsql-hackers

From Bossart, Nathan
Subject Re: do only critical work during single-user vacuum?
Date
Msg-id DB4D9904-146A-4B21-8362-99F885C489E1@amazon.com
Whole thread Raw
In response to Re: do only critical work during single-user vacuum?  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-hackers
On 12/9/21, 5:27 PM, "Peter Geoghegan" <pg@bowt.ie> wrote:
> I imagine that this new function (to handle maintenance tasks in the
> event of a wraparound emergency) would output information about its
> progress. For example, it would make an up-front decision about which
> tables needed to be vacuumed in order for the current DB's
> datfrozenxid to be sufficiently new, before it started anything (with
> handling for edge-cases with many tables, perhaps). It might also show
> the size of each table, and show another line for each table that has
> been processed so far, as a rudimentary progress indicator.

I like the idea of having a built-in function that does the bare
minimum to resolve wraparound emergencies, and I think providing some
sort of simple progress indicator (even if rudimentary) would be very
useful.  I imagine the decision logic could be pretty simple.  If
we're only interested in getting the cluster out of a wraparound
emergency, we can probably just look for all tables with an age over
~2B.

Nathan


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Atomic rename feature for Windows.
Next
From: Jeff Janes
Date:
Subject: track_io_timing default setting