Lists: | pgsql-hackers |
---|
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | beta testing - planner bug - ERROR: XX000: failed to build any 2-way joins |
Date: | 2010-05-22 00:48:24 |
Message-ID: | AANLkTiknK8hgxEc3iiLVQx6KcsFw0AkNpjQYpg1E3oE2@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hello
there are maybe planner bug.
test case:
CREATE TABLE person (
id SERIAL PRIMARY KEY,
name VARCHAR(64)
) WITHOUT OIDS;
CREATE TABLE person_data (
id SERIAL PRIMARY KEY
) WITHOUT OIDS;
------------------------------------
SELECT name
FROM person
WHERE name IN (
SELECT name FROM person p
LEFT JOIN person_data ON p.id = person_data.id
)
postgres=# explain SELECT name
FROM person
WHERE name IN (
SELECT name FROM person p
LEFT JOIN person_data ON p.id = person_data.id);
ERROR: failed to build any 2-way joins
it works on 8.3
report by Vaclav Novotny
Regards
Pavel
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: beta testing - planner bug - ERROR: XX000: failed to build any 2-way joins |
Date: | 2010-05-23 16:35:11 |
Message-ID: | 16881.1274632511@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> postgres=# explain SELECT name
> FROM person
> WHERE name IN (
> SELECT name FROM person p
> LEFT JOIN person_data ON p.id = person_data.id);
> ERROR: failed to build any 2-way joins
Fixed, thanks.
regards, tom lane