Re: dropping datumSort field

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: dropping datumSort field
Дата
Msg-id CA+TgmoacE2pqntkads=cgwxLmxH+RsCK5JxYa_XgMroatCWi_g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: dropping datumSort field  (Zhihong Yu <zyu@yugabyte.com>)
Список pgsql-hackers
On Tue, Aug 9, 2022 at 11:42 AM Zhihong Yu <zyu@yugabyte.com> wrote:
> Though the datumSort field may be harmless for now, in the future, the (auto) alignment padding may not work if more
fieldsare added to the struct.
 
> I think we should always leave some room in struct's for future expansion.

I doubt the size of this struct is particularly important, unlike
ExprEvalStep which needs to be small. But if it turns out in the
future that we need to try to squeeze this struct into fewer bytes, we
can always do something like this then. Right now there's no obvious
point to it.

Sure, it might be valuable *if* we add more fields to the struct and
*if* that means that the byte taken up by this flag actually makes the
struct bigger and *if* the size of the struct is demonstrated to be a
performance problem. But right now none of that has happened, and
maybe none of it will ever happen.

--
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: moving basebackup code to its own directory
Следующее
От: David Steele
Дата:
Сообщение: Re: moving basebackup code to its own directory