Re: Incomplete freezing when truncating a relation during vacuum

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>,pgsql-hackers(at)postgresql(dot)org
Subject: Re: Incomplete freezing when truncating a relation during vacuum
Date: 2013-12-01 20:41:14
Message-ID: 54ee2efc-3a1b-4777-b5fa-97b5a0266b89@email.android.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Noah Misch <noah(at)leadboat(dot)com> schrieb:
>On Sun, Dec 01, 2013 at 06:56:10PM +0100, Andres Freund wrote:
>> On 2013-12-01 12:49:40 -0500, Noah Misch wrote:
>> > This system had multiple problems, a missing pg_subtrans file and a
>missing
>> > TOAST chunk for pg_attribute. I don't see a pg_clog problem
>connecting it to
>> > the freeze bug at hand.
>>
>> Those all sound like possible problems caused by the bug, no?
>
>pg_subtrans has a lifecycle unrelated to datfrozenxid. I am not aware
>of a
>mechanism connecting that problem to the bug at hand.

TransactinIdIsInProgress returns true for future xids. Which triggers the use of XactLockTableWait. Which then does SubtransGetParent of a far future xid...

Andres

--
Please excuse brevity and formatting - I am writing this on my mobile phone.

Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-12-01 20:54:41 Re: Incomplete freezing when truncating a relation during vacuum
Previous Message Peter Geoghegan 2013-12-01 20:40:59 Re: review - pg_stat_statements