Re: PgStat_HashKey padding issue when passed by reference

Поиск
Список
Период
Сортировка
От Sami Imseih
Тема Re: PgStat_HashKey padding issue when passed by reference
Дата
Msg-id CAA5RZ0v8AfZxTKnhyEB_tvfXBhtn1Dcvo=t=eOMfGKYNOZb3kQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PgStat_HashKey padding issue when passed by reference  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: PgStat_HashKey padding issue when passed by reference
Список pgsql-hackers
Exactly.  Hence my proposal of static assertion is doing exactly the
job I want it to do :)

But my concern is the flexibility of this approach. If someone is to add an
OID field next, they will not be able to as that will be introducing padding.
On the other hand, passing the key by reference and documenting the reason in
pgstat_shmem.c will not lose this flexibility.

--
Sami

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