Re: AW: [HACKERS] Re: atttypmod of 0

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: AW: [HACKERS] Re: atttypmod of 0
Дата
Msg-id 199802061647.LAA11003@candle.pha.pa.us
обсуждение исходный текст
Ответ на AW: [HACKERS] Re: atttypmod of 0  (Zeugswetter Andreas DBT <Andreas.Zeugswetter@telecom.at>)
Список pgsql-hackers
>
> Yes, I think to change atttypmod to default to -1 would be the right
> thing,
> since the empty string '' really has a length of 0,
> We could think of -1 as: We don't know how long this field will be.
> 0 would mean the field has 0 bytes.

Field has varlena == 4, so zero is not possible, but I could still
change to -1 for clarity.

--
Bruce Momjian
maillist@candle.pha.pa.us

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

Предыдущее
От: Zeugswetter Andreas DBT
Дата:
Сообщение: Re: what standard say ...
Следующее
От: Zeugswetter Andreas DBT
Дата:
Сообщение: AW: AW: [HACKERS] Re: atttypmod of 0