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

From Craig Ringer
Subject Re: How to get schema name which violates fk constraint
Date
Msg-id 48FF6767.1090808@postnewspapers.com.au
Whole thread Raw
In response to Re: How to get schema name which violates fk constraint  ("George Pavlov" <gpavlov@mynewplace.com>)
List pgsql-general
George Pavlov wrote:

> I
> suspect lack of complaints is largely due to the (small) number of
> people using namespaces -- the denominator should be users of the
> feature, not all users...

I certainly found it extremely frustrating that errors didn't reference
the involved schema when I was working on a database that used several
sets of tables with the same names and structure under different schema.
As it happens I ended up finding it to be much better to store all the
data in a single set of tables with composite primary keys, but there
are certainly situations where that won't be the case.

I can see, however, that it might be a pretty tedious thing to do and
not very high on anybody's fun-to-code list.

--
Craig Ringer

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: ALTER/DROP table/view assymmetry
Next
From: Ma. Cristina Peña C.
Date:
Subject: triggers problems whit function