Re: Modifying check constraints - Mailing list pgsql-general

From Vivek Khera
Subject Re: Modifying check constraints
Date
Msg-id 15347.59257.484994.256311@yertle.kciLink.com
Whole thread Raw
In response to Re: Modifying check constraints  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
>>>>> "SS" == Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:

SS> If you can have downtime, you might just want to look at making the
SS> new table and using insert into to copy the data and rename the tables
SS> around.  This is kinda unhappy with foreign keys and more complicated
SS> constructs, but in general is less likely to cause you grief.

Unfortunately, I have plenty of foreign keys and *TONS* of data in
that table, and downtime is undesirable, but possible.

I'm gonna try the constraint surgery, as it seems to work.

Thanks.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

pgsql-general by date:

Previous
From: Doug McNaught
Date:
Subject: Re: Bug?
Next
From: Tom Lane
Date:
Subject: Re: Bug?