From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
---|---|
To: | Andre Lopes <lopes80andre(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to deactivate FK's to reorder fields in table? |
Date: | 2009-10-13 21:10:14 |
Message-ID: | 4AD4ECB6.8030808@iol.ie |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 13/10/2009 20:17, Andre Lopes wrote:
> I need to reorder fields in one table. But the database don't let me do this
> action because the FK's pointing to the table. How can I deactivate the
> FK's?
You can't reorder columns in PostgreSQL, so I'm guessing that you're
trying to drop and re-creating the table, and begin prevented from doing
so by FK dependencies from other tables - would that be correct?
If so, you can just drop the FKs and recreate them afterwards.
Ray.
------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Hunsberger | 2009-10-13 21:23:55 | Query to find contiguous ranges on a column |
Previous Message | Christophe Pettus | 2009-10-13 20:44:09 | SFPUG: Video from "Statistics and Postgres — How the Planner Sees Your Data" |