information schema

Started by Wei Shialmost 22 years ago2 messagesgeneral
Jump to latest
#1Wei Shi
weishisky@yahoo.com

Does anybody know why "key_column_usage", and
"referential_constraints" are empty in
information_schema? Have these been implemented?

e.g.
cms=# select * from
information_schema.key_column_usage;
constraint_catalog | constraint_schema |
constraint_name | table_catalog | table_schema |
table_name | column_name | ordinal_position
--------------------+-------------------+-----------------+---------------+--------------+------------+-------------+------------------
(0 rows)

cms=# select * from
information_schema.referential_constraints;
constraint_catalog | constraint_schema |
constraint_name | unique_constraint_catalog |
unique_constraint_schema | unique_constraint_name |
match_option | update_rule | delete_rule
--------------------+-------------------+-----------------+---------------------------+--------------------------+------------------------+--------------+-------------+-------------
(0 rows)

Thanks.

Wei

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Wei Shi (#1)
Re: information schema

Wei Shi <weishisky@yahoo.com> writes:

Does anybody know why "key_column_usage", and
"referential_constraints" are empty in
information_schema?

They work for me ...

regards, tom lane