Where does catalog store CHAR length ?

Поиск
Список
Период
Сортировка
От phd9110
Тема Where does catalog store CHAR length ?
Дата
Msg-id 001f01c3b7f6$58acbfe0$6c0d788c@husky
обсуждение исходный текст
Ответы Re: Where does catalog store CHAR length ?  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-hackers
hi
 the table pg_attribute have the attribute  "attlen" , and this attribute will
store the attribute length. For example , when integer , this value will be 4.
But if attribute type is Char(xx), this value will be -1. This is because it
reference the bychar in pg_type table.

So, where is the Char() length information store ??
and what time will system check this string length constraint ?

thanks for your help!
Kao , Nchu Taiwan

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

Предыдущее
От: Oliver Elphick
Дата:
Сообщение: Re: initdb should create a warning message [was Re:
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Foreign key data type mismatches