| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru> |
| Cc: | Teodor Sigaev <teodor(at)sigaev(dot)ru>, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: convert EXSITS to inner join gotcha and bug |
| Date: | 2017-04-28 14:26:58 |
| Message-ID: | 26008.1493389618@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru> writes:
> I've reproduced this bug on d981074c.
> On default config, after loading example.sql.bz2 and VACUUM ANALYZE, query
> result is OK.
> But with seqscan and hashjoin disabled, query returns 0 rows.
Ah, thanks for the clue about enable_hashjoin, because it wasn't
reproducing for me as stated.
It looks like in the case that's giving wrong answers, the mergejoin
is wrongly getting marked as "Inner Unique". Something's a bit too
cheesy about that planner logic --- not sure what, yet.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Teodor Sigaev | 2017-04-28 14:42:08 | Re: convert EXSITS to inner join gotcha and bug |
| Previous Message | Vladimir Borodin | 2017-04-28 14:10:31 | Re: [PROPOSAL] Use SnapshotAny in get_actual_variable_range |