Re: Can't use subselect in check constraint - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Can't use subselect in check constraint
Date
Msg-id 20011220133458.C82911-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Can't use subselect in check constraint  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Can't use subselect in check constraint
List pgsql-general
On Wed, 19 Dec 2001, Tom Lane wrote:

> "Ian Harding" <ianh@tpchd.org> writes:
> > Is this something that will change anytime soon?
>
> It's not high-priority in my mind.  The difficulty is the lack of a
> planning step for constraint expressions.  Maybe we could fix this
> when we redesign querytrees; right now I think there's too much cruft
> in the way (memory leaks, state kept in the querytree, etc etc)

Also, AFAICS, check constraints with subselects are constraints on the
other tables named in the subselect as well and it could be on a
case which the current check constraints don't fire (for example
on delete from a table where a set value function is used, like
check (select count(*) from foo)>col1) or something like that).



pgsql-general by date:

Previous
From: Paul Wehr
Date:
Subject: Re: How Many Years have Passed?
Next
From: "Peter E. Chen"
Date:
Subject: template question . . .