From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | danw(at)rtp(dot)ericsson(dot)se |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: outer join fails with error - solaris only |
Date: | 2001-05-17 18:24:55 |
Message-ID: | 12240.990123895@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
danw(at)rtp(dot)ericsson(dot)se writes:
> The following query gives an error when run on solaris 2.7, but it works
> fine with an equivalent configuration on rh 6.2.
It probably has nothing to do with the platform, but rather with when
you last ran VACUUM ANALYZE and what the exact contents of the database
were at the time. Does the problem become reproducible on both
platforms if you do
SET enable_hashjoin TO off;
SET enable_nestloop TO off;
> ERROR: RIGHT JOIN is only supported with mergejoinable join conditions
I believe this is fixed in 7.1.1 --- sounds like the same bug as
2001-04-14 20:48 tgl
* src/backend/optimizer/path/joinpath.c: Prevent generation of
invalid plans for RIGHT or FULL joins with multiple join clauses.
The mergejoin executor wants all the join clauses to appear as
merge quals, not as extra joinquals, for these kinds of joins. But
the planner would consider plans in which partially-sorted input
paths were used, leading to only some of the join clauses becoming
merge quals. This is fine for inner/left joins, not fine for
right/full joins.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Orsinger | 2001-05-17 18:28:20 | Re: Postgres 7.0.3 on SCO OpenServer Enterprise not working with UDP |
Previous Message | danw | 2001-05-17 17:26:56 | outer join fails with error - solaris only |