Re: Improper use about DatumGetInt32

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Improper use about DatumGetInt32
Дата
Msg-id dcfd8024-41c3-90f2-16d8-c6d3b6ca14e9@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Improper use about DatumGetInt32  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Ответы Re: Improper use about DatumGetInt32
Список pgsql-hackers
On 2020-11-27 13:37, Ashutosh Bapat wrote:
>     Yeah, I had it like that for a moment, but then you need to duplicate
>     the check in get_raw_page() and get_raw_page_fork().  I figured since
>     get_raw_page_internal() does all the other argument checking also, it
>     seems sensible to put the block range check there too.  But it's not a
>     big deal either way.
> 
> 
> FWIW, my 2c. Though I agree with both sides, I 
> prefer get_raw_page_internal() accepting BlockNumber, since that's what 
> it deals with and not the entire int8.

Patch updated this way.  I agree it's better that way.

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgbench - test whether a variable exists
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [patch] [doc] Minor variable related cleanup and rewording of plpgsql docs