From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Wiktor Rzeczkowski <rzeczkow(at)mcmail(dot)cis(dot)mcmaster(dot)ca> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: intersect bug |
Date: | 2001-10-23 15:13:52 |
Message-ID: | 4087.1003850032@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Wiktor Rzeczkowski <rzeczkow(at)mcmail(dot)cis(dot)mcmaster(dot)ca> writes:
> (select k.bib from kw k where k.kword='concept')
> intersect
> (select k.bib from kw k where k.kword='of')
> intersect
> (select k.bib from kw k where k.kword='god');
> bib
> ---
> (0 rows)
> // THIS GIVES AN INCORRECT RESULT - see the following //
Yup. Nested intersect/except structures are buggy in 7.1.*. I believe
it's fixed for 7.2 however. If you are in a hurry for a fix, you could
try back-patching the most recent change depicted at
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/prep/prepunion.c
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-10-23 15:21:51 | Re: triggers with parameters can cause backend crash |
Previous Message | Tom Lane | 2001-10-23 14:57:28 | Re: Bug #490: Can't compile PostgreSQL 7.1.3 with Solaris 2.6 |