Re: Making type Datum be 8 bytes everywhere
От | Tom Lane |
---|---|
Тема | Re: Making type Datum be 8 bytes everywhere |
Дата | |
Msg-id | 2078807.1753975083@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Making type Datum be 8 bytes everywhere (Peter Eisentraut <peter@eisentraut.org>) |
Список | pgsql-hackers |
Peter Eisentraut <peter@eisentraut.org> writes: > On 18.07.25 02:09, Tom Lane wrote: >> The attached patch switches to 8-byte Datums everywhere, but >> doesn't make any effort to remove the now-dead code. > Is the plan to support only exactly Datums of size 8, or Datums of size > at least 8? My plan was to hard-wire it at 8 permanently. It's pretty hard to believe that there will be hardware on which sizeof(Datum) == 16 would be a reasonable choice anytime while people are still using C. You'd want 16-byte registers and native operations, and I don't see any manufacturers headed in that direction. It could be reasonable to keep provisions for that as long as we still have active hardware and testing for two different sizes of Datum. However, once we kill off testing of sizeof(Datum) == 4, I think the code will acquire hard assumptions that sizeof(Datum) == 8 pretty soon. If I were upset with that prospect I would not be proposing this change. regards, tom lane
В списке pgsql-hackers по дате отправления: