pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Ernst <cernst@zvelo.com>
To: pgsql-admin@postgresql.org
Subject: Re: Recreate primary key without dropping foreign keys?
Date: Mon, 16 Apr 2012 20:55:17 -0600
Message-ID: <4F8CDB95.3040407@zvelo.com> (raw)
In-Reply-To: <4F8CC11A.5020003@d2.com>
References: <4F8B6AA1.1040709@zvelo.com>
	<20120416065717.70a31a6361ac5d7bdad416e8@frank.uvena.de>
	<4F8BD91C.6070405@zvelo.com>
	<4F8BDAB2.7010209@frank.uvena.de>
	<4F8C248E.7070307@zvelo.com>
	<4F8CC11A.5020003@d2.com>

On 04/16/2012 07:02 PM, amador alvarez wrote:
> How about deferring the FK's while recreating the PK ?
> or using a temporary parallel table to be pointed by the other tables
> (FK) and swap it up on the recreation.

Hmm.. Interesting.   But it appears that you have to declare the foreign
key as deferrable at creation.  Is there any way to set an existing
foreign key as deferrable?

	- Chris



view thread (10+ messages)  latest in thread

Message-ID: <4F8CDB95.3040407@zvelo.com>
Permalink:  ../4F8CDB95.3040407@zvelo.com/
Also on:    postgresql.org/message-id/4F8CDB95.3040407@zvelo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: cernst@zvelo.com
  Subject: Re: Recreate primary key without dropping foreign keys?
  In-Reply-To: <4F8CDB95.3040407@zvelo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox