Re: Asynchronous and "direct" IO support for PostgreSQL.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Asynchronous and "direct" IO support for PostgreSQL.
Дата
Msg-id 20210730195231.uaalr7f6lcxchmm4@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Asynchronous and "direct" IO support for PostgreSQL.  (Melanie Plageman <melanieplageman@gmail.com>)
Ответы Re: Asynchronous and "direct" IO support for PostgreSQL.
Список pgsql-hackers
Hi,

On 2021-07-30 15:35:30 -0400, Melanie Plageman wrote:
> * I think that having TBMIterateResult inside of TBMIterator is not
>   well-defined C language behavior. In [1], it says
> 
>   "Structures with flexible array members (or unions who have a
>   recursive-possibly structure member with flexible array member) cannot
>   appear as array elements or as members of other structures."

> [1] https://en.cppreference.com/w/c/language/struct

I think it is ok as long as the struct with the flexible array member is
at the end of the struct it is embedded in. I think even by the letter
of the standard, but it's as always hard to parse...

Greetings,

Andres Freund



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PoC] Improve dead tuple storage for lazy vacuum
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Have I found an interval arithmetic bug?