Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
В списке pgsql-committers по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. |
| Дата | |
| Msg-id | 20150221011616.GS2500@alvh.no-ip.org обсуждение |
| Ответ на | Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
|
| Список | pgsql-committers |
Tom Lane wrote: > A relevant technique that's been used in a lot of our code is to define > an intermediate macro, along the lines of > > #define SizeofHeapTupleHeader offsetof(HeapTupleHeaderData, t_bits) > > or maybe it would better be called HeapTupleHeaderFixedSize or > HeapTupleHeaderOverhead. Not sure what reads most nicely. Maybe the macro could take an argument which is the size of the data part, so that it could be allocated together with the Overhead part; the addition would be done in the macro rather than its caller. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера