Re: Renaming a schema - Mailing list pgsql-general

From Tom Lane
Subject Re: Renaming a schema
Date
Msg-id 27973.1088113609@sss.pgh.pa.us
Whole thread Raw
In response to Renaming a schema  (Jeffrey Melloy <jmelloy@visualdistortion.org>)
Responses Re: Renaming a schema  (Jeffrey Melloy <jmelloy@visualdistortion.org>)
List pgsql-general
Jeffrey Melloy <jmelloy@visualdistortion.org> writes:
> Recently, I decided to rename one of my schemas from "adium" to "im".
> Then, all inserts started failing.
> I recreated a couple functions, changed the search path, and all inserts
> are still failing due to referential integrity checks going against
> "adium" still.  Is there any way I can fix this, short of manually
> dropping every constraint and recreating them?

I couldn't replicate this ... AFAICS the RI triggers reference tables by
OID, not name.  What PG version are you using?  Can you give a
self-contained test case?

            regards, tom lane

pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: Re: hackers dudes
Next
From: Jeffrey Melloy
Date:
Subject: Re: Renaming a schema