Re: Freezing without cleanup lock - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Freezing without cleanup lock
Date
Msg-id 562D2FE7.1050002@BlueTreble.com
Whole thread Raw
In response to Re: Freezing without cleanup lock  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: Freezing without cleanup lock  (Masahiko Sawada <sawada.mshk@gmail.com>)
List pgsql-hackers
On 10/22/15 6:39 PM, Alvaro Herrera wrote:
> Jim Nasby wrote:
>
>> That would be the minimal-impact version, yes. But I suspect if we went
>> through the trouble to do that, it would be just as easy to attempt the
>> freeze regardless of what scan_all is set to.
>
> You mean if !scan_all we conditional-get the cleanup lock, if we get it
> then prune, if not then freeze?  That seems nice on paper but I think
> it's useless because unless scan_all is true, then relfrozenxid doesn't
> advance anyway.

Actually, advancing relfrozenxid only depends on having hit all pages in 
the table, which can happen even if !scan_all. Aside from that, once the 
freeze map hits this would be useful in setting bits there.

>> What I wish I knew is whether this problem was worth worrying about or not.
>> Hopefully the extra logging in 9.5 will shed some light at some point...
>
> As I recall, Andres says it isn't, but I have recollections of scans
> that take a very long time to finish because they keep running into a
> vacuum that has a page locked.

I guess lets see if the new logging we have on this sheds some light then.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: pgbench gaussian/exponential docs improvements
Next
From: Robert Haas
Date:
Subject: Re: make Gather node projection-capable