Re: How to get schema name which violates fk constraint - Mailing list pgsql-general

From Scott Marlowe
Subject Re: How to get schema name which violates fk constraint
Date
Msg-id dcc563d10810211907n3c59a920ia9eb7cd2a6d5ea58@mail.gmail.com
Whole thread Raw
In response to How to get schema name which violates fk constraint  ("Andrus" <kobruleht2@hot.ee>)
Responses Re: How to get schema name which violates fk constraint  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
Actually this sounds like a TODO to me.  I imagine the db knows the
schema and it's just not reporting it in the error message.  Bruce?
Tom?

On Tue, Oct 14, 2008 at 9:43 AM, Andrus <kobruleht2@hot.ee> wrote:
> FK violation erroro is displayed as
>
> 7/23503:ERROR: insert or update on table "summak" violates foreign key
> constraint "summak_kontonr_fkey1"
> Key (kontonr)=(2421      ) is not present in table "konto".
>
> I have large numbers of schemas all containing tables with same name.
>
> How to determine schema name where error occurs?
>
> Andrus.
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



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

pgsql-general by date:

Previous
From: Guy Rouillier
Date:
Subject: Re: Annoying Reply-To
Next
From: "Scott Marlowe"
Date:
Subject: Re: How to free disk space