| От | Tom Lane |
|---|---|
| Тема | Re: What's the prefix? |
| Дата | |
| Msg-id | 152580.1677464335@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Re: What's the prefix? ("jacktby@gmail.com" <jacktby@gmail.com>) |
| Список | pgsql-hackers |
"jacktby@gmail.com" <jacktby@gmail.com> writes:
>> text is variable length so there is header information built into the datatype representation that indicates how
longthe content is.
David's statement is accurate.
> No, this is the varlena struct:
> struct varlena
> {
> char vl_len_[4]; /* Do not touch this field directly! */
> char vl_dat[FLEXIBLE_ARRAY_MEMBER]; /* Data content is here */
This struct only accurately describes "untoasted" varlenas.
The one you are looking at is a "short header" varlena;
see varattrib_1b and nearby comments in src/include/varatt.h,
or in postgres.h if you're not looking at current HEAD branch.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера