Re: Possibly too stringent Assert() in b-tree code
От | Robert Haas |
---|---|
Тема | Re: Possibly too stringent Assert() in b-tree code |
Дата | |
Msg-id | CA+Tgmoaj_N_kwqoHs61mugync10ppK_wM=zidf=HO9k9ypXs3A@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Possibly too stringent Assert() in b-tree code (Amit Kapila <amit.kapila16@gmail.com>) |
Ответы |
Re: Possibly too stringent Assert() in b-tree code
|
Список | 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 по дате отправления: