Re: BlockNumber initialized to InvalidBuffer?

Поиск
Список
Период
Сортировка
От Markus Wanner
Тема Re: BlockNumber initialized to InvalidBuffer?
Дата
Msg-id 4FFFEB7F.9090702@bluegap.ch
обсуждение исходный текст
Ответ на Re: BlockNumber initialized to InvalidBuffer?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BlockNumber initialized to InvalidBuffer?  (Markus Wanner <markus@bluegap.ch>)
Список pgsql-hackers
On 07/11/2012 05:45 AM, Tom Lane wrote:
> I'm also inclined to think that the "while (stack)" coding of the rest
> of it is wrong, misleading, or both, on precisely the same grounds: if
> that loop ever did fall out at the test, the function would have failed
> to honor its contract.  The only correct exit points are the "return"s
> in the middle.

I came to the same conclusion, yes. Looks like the additional asserts in
the attached patch all hold true.

As another minor improvement, it doesn't seem necessary to repeatedly
set the rootBlkno.

Regards

Markus Wanner

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Atri Sharma
Дата:
Сообщение: Re: Regarding installation of FDW on Windows
Следующее
От: Dave Page
Дата:
Сообщение: Re: Regarding installation of FDW on Windows