Re: infinite loop in _bt_getstackbuf
От | Robert Haas |
---|---|
Тема | Re: infinite loop in _bt_getstackbuf |
Дата | |
Msg-id | CA+TgmoaMGuZjNPuQ9d7bYGQaWNwV=oMeDaAv2Kw1rf5SrVFKGw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: infinite loop in _bt_getstackbuf (Peter Geoghegan <pg@heroku.com>) |
Список | pgsql-hackers |
On Thu, Jan 15, 2015 at 5:46 PM, Peter Geoghegan <pg@heroku.com> wrote: > I think that it might be a good idea to have circular _bt_moveright() > moves (the direct offender in Merlin's case, which has very similar > logic to your _bt_getstackbuf() problem case) detected. I'm pretty > sure that it's exceptional for there to be more than 2 or 3 retries in > _bt_moveright(). It would probably be fine to consider the possibility > that we'll never finish once we get past 5 retries or something like > that. We'd then start keeping track of blocks visited, and raise an > error when a page was visited a second time. Yeah, I could go for that. Possibly somebody might object that it's a lot of code that will never get tested in normal operation, but as this problem doesn't seem to be strictly theoretical I'm not sure I subscribe to that objection. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: