Re: Checking of constraints via subqueries? - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Checking of constraints via subqueries?
Date
Msg-id 20050217185928.GA27066@winnie.fuhr.org
Whole thread Raw
In response to Re: Checking of constraints via subqueries?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
On Thu, Feb 17, 2005 at 07:31:42PM +0100, Martijn van Oosterhout wrote:
> On Thu, Feb 17, 2005 at 11:03:58AM -0700, Michael Fuhr wrote:
> >
> > In experiments I've defined a domain's CHECK expression to call a
> > function that makes queries.  It worked in simple tests; I don't
> > know if it'll work in the general case.
>
> The problem is basically that modifying a table elsewhere could have
> the effect of invalidating the entries in the table being checked.

Yeah, that's the kind of thing that concerned me.  I meant to ask
the OP the usual question:

What problem are you trying to solve?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Lonni J Friedman
Date:
Subject: Re: Problems compiling 7.4.6 src rpms
Next
From: Michael Fuhr
Date:
Subject: Re: change user password