| От | Tom Lane |
|---|---|
| Тема | Re: Understanding VARHDRSZ |
| Дата | |
| Msg-id | 29979.1153977862@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Understanding VARHDRSZ ("Redefined Horizons" <redefined.horizons@gmail.com>) |
| Список | pgsql-general |
"Redefined Horizons" <redefined.horizons@gmail.com> writes:
> Page 524 of the PostgreSQL 8.1 Manual, PDF Edition, has a code snippit
> that makes use of the VARHDRSZ macro. I'm trying to understand the
> purpose of this macro.
It's just a symbol for the size of the length word at the start of the
stored value.
> If this is the case, why even have the VARHDRSZ macro?
Someday, we might want to change the size of the length word (eg,
move to int8, when no one uses mere 32-bit machines anymore). That
will be a painful undertaking in any case, but everyplace that codes
the overhead space as "VARHDRSZ" rather than "4" will be one less
place to fix.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера