Re: How to get schema name which violates fk constraint

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: Andrus <kobruleht2(at)hot(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to get schema name which violates fk constraint
Date: 2008-10-22 17:35:20
Message-ID: dcc563d10810221035o413f8f65k2eac36ef75d1df6f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 22, 2008 at 11:13 AM, Andrus <kobruleht2(at)hot(dot)ee> wrote:
>> Well, FWIW, I also would like to be able to see which schema caused the
>> violation, as I'm in a similar boat of having the same table name in
>> multiple schemas.
>
> Maybe to report schema name only if it is not public or if same table exists
> in different schemas or report it in detail message or hint.

I doubt that would make it any easier to implement, and I don't see
reporting schemaname.relationname as being all that cluttery anyway.

-- When fascism comes to America, it will be draped in a flag and
carrying a cross - Sinclair Lewis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-10-22 17:35:34 Re: How to view user defined TYPE
Previous Message Scott Marlowe 2008-10-22 17:34:12 Re: How to get schema name which violates fk constraint