Re: AW: [HACKERS] varchar() vs char16 performance - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: AW: [HACKERS] varchar() vs char16 performance
Date
Msg-id 199803111850.NAA21384@candle.pha.pa.us
Whole thread Raw
In response to AW: [HACKERS] varchar() vs char16 performance  (Zeugswetter Andreas <andreas.zeugswetter@telecom.at>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: AW: [HACKERS] attlen weirdness?
Next
From: Brett McCormick
Date:
Subject: Re: [HACKERS] varchar() vs char16 performance