Re: pg_class catalog question...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_class catalog question...
Дата
Msg-id 8997.1143822555@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_class catalog question...  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Re: pg_class catalog question...  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Re: pg_class catalog question...  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-hackers
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> About the only reason I use CHAR in other databases systems is when I
> know that the field will always contain the same amount of data, ie:
> storing a SHA1. In these cases it's silly to have a 4 byte overhead to
> store length. I really wish CHAR in PostgreSQL worked this way, so it
> would be a welcome addition to have a type that did work this way. In
> fact, I'd argue that CHAR should be made to work that way, and what's
> currently called CHAR should be renamed for those who wish to use it.

This argument falls flat when you consider that the width of a CHAR
entry is measured in characters, not bytes, and therefore its physical
size is not fixed even if its logical width is.
        regards, tom lane


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

Предыдущее
От: "D'Arcy J.M. Cain"
Дата:
Сообщение: Re: Slony-I for circular replication
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: WAL dirty-buffer management bug