Re: Checking of constraints via subqueries?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Wolfgang Drotschmann <drotschm(at)fgan(dot)de>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Checking of constraints via subqueries?
Date: 2005-02-17 18:59:28
Message-ID: 20050217185928.GA27066@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-02-17 19:04:38 Re: change user password
Previous Message Edmund Bacon 2005-02-17 18:46:29 Re: hung postmaster?