Re: 7.4's INFORMATION_SCHEMA.Columns View

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 7.4's INFORMATION_SCHEMA.Columns View
Дата
Msg-id 20973.1087573349@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 7.4's INFORMATION_SCHEMA.Columns View  (mike.griffin@mygenerationsoftware.com)
Ответы Re: 7.4's INFORMATION_SCHEMA.Columns View  (Bruno Wolff III <bruno@wolff.to>)
Re: 7.4's INFORMATION_SCHEMA.Columns View  (mike.griffin@mygenerationsoftware.com)
Список pgsql-general
mike.griffin@mygenerationsoftware.com writes:
> This is part of the Columns View, if you add a numeric field to your table
> and don't provide any Length or Precision then :

> numeric_precision is returned as 65535
> numeric_scale is returned as 65531

Yeah, that's what you'd get for a numeric field with no length
constraint.  (I suspect varchar with no length constraint will
display funny as well.)

The SQL spec doesn't allow unconstrained lengths for these types
so it gives no guidance about what to display in the information_schema
views.  Any opinions?

            regards, tom lane

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

Предыдущее
От: "Florian G. Pflug"
Дата:
Сообщение: Database corruption using 7.4.1
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: 7.4's INFORMATION_SCHEMA.Columns View