Fix incorrect permissions check in information_schema.key_column_usage view:
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Jan 2007 18:32:32 +0000 (18:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Jan 2007 18:32:32 +0000 (18:32 +0000)
commit3aa48175c8f574e0b914a133e7e485a53c44c858
tree1d1d0a491ba1d303eb7af59ce19ed0e802389cf3
parent342d8d27cafdf688b7eaf7cb725f1ef042e2a9c1
Fix incorrect permissions check in information_schema.key_column_usage view:
it was checking a pg_constraint OID instead of pg_class OID, resulting in
"relation with OID nnnnn does not exist" failures for anyone who wasn't
owner of the table being examined.  Per bug #2848 from Laurence Rowe.

Note: for existing 8.2 installations a simple version update won't fix this;
the easiest fix is to CREATE OR REPLACE this view with the corrected
definition.
src/backend/catalog/information_schema.sql