Re: PgStat_HashKey padding issue when passed by reference

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: PgStat_HashKey padding issue when passed by reference
Дата
Msg-id aMtzJxPHu3Ddx7fu@paquier.xyz
обсуждение исходный текст
Ответ на Re: PgStat_HashKey padding issue when passed by reference  (Sami Imseih <samimseih@gmail.com>)
Ответы Re: PgStat_HashKey padding issue when passed by reference
Список pgsql-hackers
On Wed, Sep 17, 2025 at 07:04:36PM -0500, Sami Imseih wrote:
> "NB: We assume that this struct contains no padding.  Also, 8 bytes
>  allocated for the object ID are good enough to ensure the uniqueness
> of the hash key, hence the addition of new fields is not recommended."

Works for me.

> Also, what about we also add the assert as done earlier in this thread [0]
> to ensure that the struct indeed does not have padding?

I still want to add it, but it also seemed like you were not much a
fan of it, so I did not really want to push forward with something
that was not loved.  :D

Addressing your points, attached is an updated patch labelled v2.
--
Michael

Вложения

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