pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gary Stainburn <gary.stainburn@ringways.co.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Wieck <JanWieck@yahoo.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: Denis Bucher <dbucher@niftycom.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Are circular REFERENCES possible ?
Date: Wed, 8 Aug 2001 09:43:28 +0100
Message-ID: <01080809432802.23554@gary.ringways.co.uk> (raw)
In-Reply-To: <8929.997209304@sss.pgh.pa.us>
References: <200108071654.f77GssQ01998@jupiter.us.greatbridge.com>
	<8929.997209304@sss.pgh.pa.us>

Hi all,

On Tuesday 07 August 2001  7:35 pm, Tom Lane wrote:
> Jan Wieck <JanWieck@Yahoo.com> writes:
> >     The point is that we based our implementation of foreign keys
> >     on the SQL3 specs. DEFERRED is not in SQL-92 AFAIK.
>
> I still have a concern about this --- sure, you can set up the circular
> references using ALTER TABLE, but will pg_dump dump them correctly?

Based on a small example I've done, I'd say yes. This is because pg_dump 
doesn't specify the contraints when it creates the tables, it does it at the 
end by using 'CREATE CONSTRAINT' commands.

I have a relationship Members -> teams -> regions -> members and it dumped 
and restored fine.

Gary

>
> 			regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     



view thread (15+ messages)  latest in thread

Message-ID: <01080809432802.23554@gary.ringways.co.uk>
Permalink:  ../01080809432802.23554@gary.ringways.co.uk/
Also on:    postgresql.org/message-id/01080809432802.23554@gary.ringways.co.uk

 · 

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: gary.stainburn@ringways.co.uk, tgl@sss.pgh.pa.us, JanWieck@yahoo.com, josh@agliodbs.com, dbucher@niftycom.com
  Subject: Re: Are circular REFERENCES possible ?
  In-Reply-To: <01080809432802.23554@gary.ringways.co.uk>

* 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