Re: left join bug?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Max Khon <fjoe(at)iclub(dot)nsu(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: left join bug?
Date: 2000-12-13 16:37:20
Message-ID: 9031.976725440@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Max Khon <fjoe(at)iclub(dot)nsu(dot)ru> writes:
> test=# select a.id, b.id from a left join b using(id);
> id | id
> ----+----
> 43 |
> 45 |
> (2 rows)

> test=# select * from a;
> id
> ----
> 45
> 43
> 34
> (3 rows)

Ugh. It looks like mergejoin must be mishandling the first left-side
item when the right side is empty. Will take a look...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message D=?ISO-8859-1?Q?=C5?= 2000-12-13 16:54:24 Writing essay, please help!
Previous Message Luis Sousa 2000-12-13 16:29:17 Problem when deleting a record from a table