Re: Bug in information_schema: FK constraint is defined as against referenced table only

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in information_schema: FK constraint is defined as against referenced table only
Дата
Msg-id 5130.1229302949@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug in information_schema: FK constraint is defined as against referenced table only  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> By information_schema, you wouldn't have any idea that errors_file_fkey 
> is defined on the table Errors, let alone what columns it's defined 
> against.

Look into key_column_usage.

> I'm happy to write some code to fix it, if we can agree what these views 
> should show.  I think constraint_column_usage and constraint_table_usage 
> should be showing the data of both the referenced and referencing tables.

You might think that, but the specification is 100% clear that you're
wrong.
        regards, tom lane


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

Предыдущее
От: KaiGai Kohei
Дата:
Сообщение: Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)
Следующее
От: "Robert Haas"
Дата:
Сообщение: Re: Sync Rep: First Thoughts on Code