Re: btvacuumpage useless "orig_blkno"

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: btvacuumpage useless "orig_blkno"
Дата
Msg-id CA+U5nMKJSbE-9qJO25QQ_6ns1ZEi=ww07eVm7bfPZQQRHngxFg@mail.gmail.com
обсуждение исходный текст
Ответ на btvacuumpage useless "orig_blkno"  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: btvacuumpage useless "orig_blkno"  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
On Mon, Nov 21, 2011 at 10:03 PM, Alvaro Herrera
<alvherre@alvh.no-ip.org> wrote:
> I just noticed that btvacuumpage has two BlockNumber parameters -- blkno
> and orig_blkno.  The only caller passes them as the same value; the
> header comments state that blkno would be different when recursing, but
> actually the function implements recursion internally by way of a cute
> "goto" trick.  So it seems to me that the orig_blkno parameter is
> useless -- we could just remove it.
>
> Unless I'm completely missing something?

tail recursion - read comments at bottom of the function

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: btvacuumpage useless "orig_blkno"
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: btvacuumpage useless "orig_blkno"