Re: Printing LSN made easy

Поиск
Список
Период
Сортировка
От Ashutosh Bapat
Тема Re: Printing LSN made easy
Дата
Msg-id CAExHW5v+W26wsKWKbadD2na9wxz77E1K+Md1hHxeBR8vVyiHeQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Printing LSN made easy  (Li Japin <japinli@hotmail.com>)
Ответы Re: Printing LSN made easy
Список pgsql-hackers
On Fri, Nov 27, 2020 at 9:51 PM Li Japin <japinli@hotmail.com> wrote:
>
> Hi,
>
> Here, we cannot use sizeof(but) to get the buf size, because it is a pointer, so it always
> 8 bytes on 64-bit or 4 bytes on 32-bit machine.

For an array, the sizeof() returns the size of memory consumed by the
array. See section "Application to arrays" at
https://en.wikipedia.org/wiki/Sizeof.
-- 
Best Wishes,
Ashutosh Bapat



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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: OpenSSL 3.0.0 compatibility
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: [HACKERS] [PATCH] Generic type subscripting