Re: optimizing vacuum truncation scans - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: optimizing vacuum truncation scans
Date
Msg-id 55B27FB3.30600@BlueTreble.com
Whole thread Raw
In response to Re: optimizing vacuum truncation scans  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
On 7/22/15 11:11 AM, Jeff Janes wrote:
> I guess add an "Assert(InRecovery || running_a_vacuum);" to
> the visibilitymap_set with a comment there, except that I don't know how
> to implement running_a_vacuum so that it covers manual vacs as well as
> autovac.

static bool RunningVacuum; ? It only needs to be per-backend, right?

If it is that simple then my $0.02 is we should have the assert, not 
just a comment.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: [PROPOSAL] VACUUM Progress Checker.
Next
From: Robert Haas
Date:
Subject: Re: Proposal for CSN based snapshots