Re: BUG #2848: information_schema.key_column_usage does not work

From: Laurence Rowe <l(at)lrowe(dot)co(dot)uk>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2848: information_schema.key_column_usage does not work
Date: 2007-01-15 16:20:58
Message-ID: eog9l8$u4l$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I see the same problem with 8.2 on linux. Laurence

Tony Marston wrote:
> The following bug has been logged online:
>
> Bug reference: 2848
> Logged by: Tony Marston
> Email address: tony(at)marston-home(dot)demon(dot)co(dot)uk
> PostgreSQL version: 8.2
> Operating system: Windows XP
> Description: information_schema.key_column_usage does not work
> Details:
>
> I have the following query:
>
> SELECT key_column_usage.*,constraint_type
> FROM information_schema.key_column_usage
> LEFT JOIN information_schema.table_constraints USING
> (table_schema,table_name,constraint_name)
> WHERE table_schema='whatever' and table_name='whatever'
> ORDER BY constraint_type, constraint_name, ordinal_position
>
> This works when I am logged on as 'postgres', but if I try it after logging
> on with a different username it fails with "ERROR: relation with OID 18635
> does not exist".
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message James Russell 2007-01-16 06:16:22 BUG #2895: Private Use Unicode character crashes server when using ILIKE
Previous Message Tom Lane 2007-01-15 00:00:41 Re: "char" quoted in column information schema view