Re: AW: [HACKERS] varchar() vs char16 performance

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: AW: [HACKERS] varchar() vs char16 performance
Дата
Msg-id 199803111850.NAA21384@candle.pha.pa.us
обсуждение исходный текст
Ответ на AW: [HACKERS] varchar() vs char16 performance  (Zeugswetter Andreas <andreas.zeugswetter@telecom.at>)
Список pgsql-hackers
> so the current char2-16 code behaves more like varchar. I don't know if anybody does
> rely on this behavior. If not, I would vote to change the char-char16 with the char()
> type and remove the varhdr from char(). I like getting a simple char * into my C function.
> (see point 1)

Removing the header from char() types is possible now that we have
atttypmod, but I doubt atttypmod is available in all places that the
length of the type is needed.  varlena is supported all over the place
in the backend.

--
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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: AW: [HACKERS] attlen weirdness?
Следующее
От: Brett McCormick
Дата:
Сообщение: Re: [HACKERS] varchar() vs char16 performance