Re: AW: [HACKERS] varchar() vs char16 performance
Bruce Momjian <maillist@candle.pha.pa.us>
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: andreas.zeugswetter@telecom.at (Zeugswetter Andreas)
Cc: lockhart@alumni.caltech.edu, pgsql-hackers@hub.org
Date: 1998-03-11T18:50:13Z
Lists: 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)