Re: Possibly too stringent Assert() in b-tree code - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Possibly too stringent Assert() in b-tree code
Date
Msg-id CA+Tgmoaj_N_kwqoHs61mugync10ppK_wM=zidf=HO9k9ypXs3A@mail.gmail.com
Whole thread Raw
In response to Re: Possibly too stringent Assert() in b-tree code  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Possibly too stringent Assert() in b-tree code  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Sep 19, 2016 at 7:07 AM, Amit Kapila <amit.kapila16@gmail.com> wrote:
>> Of course, the database could have been corrupted after having encountered
>> many crashes during my experiments. Neverthelesss, even without in-depth
>> knowledge of the b-tree code I suspect that this stack trace might reflect a
>> legal situation. In partcular, if _bt_page_recyclable() returned on this
>> condition:
>>
>>         if (PageIsNew(page))
>>                 return true;
>>
>
> I think you have a valid point.  It seems we don't need to write WAL
> for reuse page (aka don't call _bt_log_reuse_page()), if the page is
> new, as the only purpose of that log is to handle conflict based on
> transaction id stored in special area which will be anyway zero.

+1.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Possibly too stringent Assert() in b-tree code
Next
From: "Daniel Verite"
Date:
Subject: Re: Improvements in psql hooks for variables