Re: error-free disabling of individual child partition - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: error-free disabling of individual child partition
Date
Msg-id 20060522193930.GK64371@pervasive.com
Whole thread Raw
In response to Re: error-free disabling of individual child partition  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: error-free disabling of individual child partition  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Mon, May 22, 2006 at 03:28:39PM -0400, Andrew Dunstan wrote:
> Jim C. Nasby wrote:
> >
> >BEGIN;
> >-- Don't do the drop right now, because it might take awhile
> >ALTER TABLE tablename RENAME TO delete_tablename;
> >ALTER TABLE temporary_tablename RENAME TO tablename;
> >COMMIT;
> >DROP delete_tablename;
> >
> >  
> 
> What if there are dependencies? Might be better to have a view, which 
> everything depends on, and change the view definition from one table to 
> another back and forth.

What dependencies would there be that a view would solve? You can't
define RI on a view AFAIK...
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Porting MSSQL to PGSQL (Was: [OT] MySQL is bad, but THIS bad?)
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Update on sort-compression stuff