Re: [HACKERS] attlen weirdness?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] attlen weirdness?
Дата
Msg-id 199803111553.KAA18128@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] attlen weirdness?  ("Julia A.Case" <julie@hub.org>)
Список pgsql-hackers
>
> Quoting Bruce Momjian (maillist@candle.pha.pa.us):
> >
> > pg_attribute.atttypmod.
> >
>     this field appears to be field size + 4
>         in a char(1024) field it returns 1028
>         in a char(10) it returns 14
>
>         is it padded?
>

Yes.  All varlena sizes store the VARHDRSZ, variable header size of 4,
in the length field.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: Zeugswetter Andreas
Дата:
Сообщение: AW: [HACKERS] attlen weirdness?
Следующее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] varchar() vs char16 performance