From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
Cc: | Neil Conway <neilc(at)samurai(dot)com>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: 7.4 Wishlist |
Date: | 2002-12-01 16:24:18 |
Message-ID: | 18457.1038759858@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-general pgsql-hackers |
Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> writes:
> On 30 Nov 2002, Neil Conway wrote:
>> Have we decided how this would even work? Last I heard, Tom still had
>> some major reservations about the practicality of implementing these --
>> for example, would you re-evaluate all constraints that SELECT from a
>> table when the table changes?
> You'd have to either do it in all cases or come up with something that was
> smart enough to limit the cases to some extent based on the expression. I
> doubt that it'd perform terribly well, especially at first.
Note that you can get the "stupid" semantics (run the subselect only
when the constrained table changes) today: just hide the subselect in
a user-defined function that's called from the constraint expression.
Or put the whole check in a trigger instead of using a constraint.
I don't think we should bother with direct support of subselects in
constraints unless we can come up with an implementation that is
significantly better than what you can accomplish with these
workarounds.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-12-01 17:38:06 | Re: Segmentation fault while COPY in 7.3 |
Previous Message | Florian Weimer | 2002-12-01 12:50:25 | Re: 7.4 Wishlist |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-12-01 17:38:06 | Re: Segmentation fault while COPY in 7.3 |
Previous Message | Scott Taylor | 2002-12-01 15:53:24 | SQL Query |
From | Date | Subject | |
---|---|---|---|
Next Message | Szima Gábor | 2002-12-01 16:49:01 | numeric to text (7.3) |
Previous Message | snpe | 2002-12-01 15:57:28 | Re: 7.4 To Do |