Re: [HACKERS] Tuple size
| От | Bruce Momjian |
|---|---|
| Тема | Re: [HACKERS] Tuple size |
| Дата | |
| Msg-id | 0185e413e95946d9ee66e94a10e225f3 обсуждение исходный текст |
| Ответ на | [HACKERS] Tuple size (Alexander Demenshin <aldem@techie.com>) |
| Список | pgsql-hackers |
> > On Fri, Jun 20, 1997 at 02:31:02PM -0400, Bruce Momjian wrote: > > > Now I am confused. Does varchar() store only used bytes? Then the FAQ > > is wrong. It says char() and varchar() always store maximum length. > > varchar() stores maximum length only (and only!) if length is > specified. varchar(100) will always store 100 bytes, while > varchar will store only entered bytes: > > create table tab (v varchar); > > This will work as text. But: > > create table tab (v varchar(100)); > > will *always* store 100 characters. The only difference from > char() - varchar() is not padded with spaces... I feel better now. - -- Bruce Momjian maillist@candle.pha.pa.us ------------------------------
В списке pgsql-hackers по дате отправления: