Re: Renaming a schema

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeffrey Melloy <jmelloy(at)visualdistortion(dot)org>
Cc: pgsql general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Renaming a schema
Date: 2004-06-24 21:46:49
Message-ID: 27973.1088113609@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeffrey Melloy <jmelloy(at)visualdistortion(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeffrey Melloy 2004-06-25 00:48:03 Re: Renaming a schema
Previous Message Kristopher Spencer-Yates 2004-06-24 20:47:12 Problems with Postgres and PHP from command line