Re: information_schema.columns changes needed for OLEDB

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: information_schema.columns changes needed for OLEDB
Дата
Msg-id 200906072349.00683.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: information_schema.columns changes needed for OLEDB  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: information_schema.columns changes needed for OLEDB  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sunday 31 May 2009 18:41:55 Tom Lane wrote:
> AFAICS, the SQL standard demands that precision and scale fields be
> non-null all the time for those data types where they make sense
> (this is encoded in the CHECK CONSTRAINTs that are declared for the
> various information-schema tables, see particularly 21.15
> DATA_TYPE_DESCRIPTOR base table in SQL99).  DATE is clearly wrong
> per spec, but it's not the only problem.

The DATE change is the only thing I'd be prepared to make right now.

> Our interpretation has been to set these values to null if the typmod
> is defaulted, which is reasonable in the abstract but it's still a
> violation of spec.  I wonder whether we should be inserting some large
> limit value instead.

That is something to think about, but it needs more time.  We also have some 
inconsistency there; for example we produce a large limit value for octet 
length.  Needs more thought.  And if we go down that route, it should also 
require less hardcoding of numbers into information_schema.sql.




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Partial vacuum versus pg_class.reltuples
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Partial vacuum versus pg_class.reltuples