Re: issue about information_schema REFERENTIAL_CONSTRAINTS

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: issue about information_schema REFERENTIAL_CONSTRAINTS
Дата
Msg-id alpine.DEB.2.00.1009020741380.2656@localhost.localdomain
обсуждение исходный текст
Ответ на Re: issue about information_schema REFERENTIAL_CONSTRAINTS  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: issue about information_schema REFERENTIAL_CONSTRAINTS  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
Dear Peter,

>> I'm suggesting uniqueness in the "information_schema", which can be
>> provided independently by some tweaking in the view construction, I
>> think, for instance by adding the oid of the constraint or maybe the
>> table_name.
>
> The view is defined by the SQL standard.

No. The result of the view (the definition of the expected attributes) is
defined in the standard. But it is really a view on top of "pg_catalog".

You are right that some views of the information_schema are defined in the
standard, but they deal with restrictions of other relations, say the
privileges for the current user...

> We cannot change it.

Yes we can!  It, it is 100% postgresql:

  \d information_schema.referential_constraints
   View "information_schema.referential_constraints"
   ...
    FROM pg_namespace ncon
    JOIN pg_constraint con ON ncon.oid = con.connamespace
    JOIN pg_class c ON con.conrelid = c.oid

--
Fabien Coelho - CRI, Maths & Systèmes, MINES ParisTech

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #5629: ALTER SEQUENCE foo START execute a RESTART
Следующее
От: "KOIZUMI Satoru"
Дата:
Сообщение: BUG #5636: extra "(" or missing ")"