Re: Why there is a PG_GETARG_UINT32 and PG_RETURN_UINT32?

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: Why there is a PG_GETARG_UINT32 and PG_RETURN_UINT32?
Дата
Msg-id 004901ce31b3$cbd14680$6373d380$@kapila@huawei.com
обсуждение исходный текст
Ответ на Why there is a PG_GETARG_UINT32 and PG_RETURN_UINT32?  (Rodrigo Barboza <rodrigombufrj@gmail.com>)
Список pgsql-hackers
On Thursday, April 04, 2013 8:30 PM Rodrigo Barboza wrote:

> Hi guys.
> I am wondering when I can use the PG_GETARG_UINT32 and PG_RETURN_UINT32.
> If postgres has no unsigned int type, what is the use of these macros?

They are mainly used for contrib module functionality or some built-in
functions which are not exposed.
For example, bt_page_items() receives relation name (text) and block number
(int), but internally the block number
is unit32 as max blocks can be oxFFFFFFFE.

With Regards,
Amit Kapila.




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
Следующее
От: Rodrigo Barboza
Дата:
Сообщение: Re: Why there is a PG_GETARG_UINT32 and PG_RETURN_UINT32?