From: Josh Berkus <josh@agliodbs.com>
To: Jan Wieck <JanWieck@Yahoo.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Denis Bucher <dbucher@niftycom.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Are circular REFERENCES possible ?
Date: Tue, 07 Aug 2001 10:52:38 -0700
Message-ID: <web-98111@davinci.ethosmedia.com> (raw)
In-Reply-To: <200108071654.f77GssQ01998@jupiter.us.greatbridge.com>
Jan,
> All of this is wrong. If the constraints are defined to be
> INITIALLY DEFERRED, all you have to do is to wrap all the
> changes that put the database into a temporary inconsistent
> state into a transaction. What is a good idea and strongly
> advised anyway.
>
> DEFERRED means, that the consistency WRT the foreign key
> constratins will be checked at COMMIT time instead of the
> actual statement. So if you
Hmmm... sounds interesting. Can this be done through functions? I.E.,
if I put the INSERT/INSERT/UPDATE operation inside a function, does it
automatically wait until the function completes before checking
constraints?
> Josh, maybe you should buy a newer SQL-bo... :-)
>
> Got ya (LOL)!
Zap! Ouch. ;-)
>
> The point is that we based our implementation of foreign keys
> on the SQL3 specs. DEFERRED is not in SQL-92 AFAIK.
>
Know a good SQL3 book? I bought O'Reilly's SQL In A Nutshell for that,
but the book has numerous omissions and a few mistakes.
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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: josh@agliodbs.com, JanWieck@Yahoo.com, dbucher@niftycom.com
Subject: Re: Are circular REFERENCES possible ?
In-Reply-To: <web-98111@davinci.ethosmedia.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