pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Michael Fuhr <mike@fuhr.org>
Cc: frank@joerdens.de
Cc: pgsql-sql@postgresql.org
Subject: Re: can you change an FK constraint from NOT DEFERRABLE to DEFERRABLE
Date: Wed, 30 Mar 2005 13:02:55 -0600
Message-ID: <20050330190255.GA19669@wolff.to> (raw)
In-Reply-To: <20050330175242.GA36241@winnie.fuhr.org>
References: <20050330090732.GA10376@mail.archi-me-des.de>
	<op.sof2u5gmth1vuj@localhost>
	<20050330103311.GB10376@mail.archi-me-des.de>
	<20050330175232.GB17708@wolff.to>
	<20050330175242.GA36241@winnie.fuhr.org>

On Wed, Mar 30, 2005 at 10:52:42 -0700,
  Michael Fuhr <mike@fuhr.org> wrote:
> On Wed, Mar 30, 2005 at 11:52:32AM -0600, Bruno Wolff III wrote:
> > 
> > What version of Postgres are you running? I think ALTER CONSTRAINT is a
> > relatively recent addition.
> 
> Where are you seeing ALTER CONSTRAINT?  I don't see it in gram.y
> even in HEAD.

I guess only in the previous messages in the thread.
I remembered some recent additions to the ALTER TABLE command and incorrectly
assumed that ALTER CONSTRAINT was one of those.

It does look like you can only ADD and DROP constraints, not directly
alter or replace them. So making a reference deferable is go to require
a DROP and ADD which will need to recheck the constraint.



view thread (7+ messages)  latest in thread

Message-ID: <20050330190255.GA19669@wolff.to>
Permalink:  ../20050330190255.GA19669@wolff.to/
Also on:    postgresql.org/message-id/20050330190255.GA19669@wolff.to

 · 

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-sql@postgresql.org
  Cc: bruno@wolff.to, mike@fuhr.org, frank@joerdens.de
  Subject: Re: can you change an FK constraint from NOT DEFERRABLE to DEFERRABLE
  In-Reply-To: <20050330190255.GA19669@wolff.to>

* 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