From: aray1985@yahoo.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8196: problem with left join and is null check
Date: Fri, 31 May 2013 15:03:00 +0000
Message-ID: <E1UiQr6-0008IE-IG@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8196
Logged by: Ara
Email address: aray1985@yahoo.com
PostgreSQL version: 9.1.9
Operating system: ubuntu
Description:
I have to tables which I'm joining with left join query.
SELECT count(*) FROM
table A LEFT JOIN table B ON ...
result has 200 000 rows, for 190 000 of them there is no value for columns
of table B (result of join)
ISSUE: When I'm trying to filter result with WHERE B.some_column IS NULL
query works more then 5 min (never waited for result).
MORE INFO:
When I'm filtering results with WHERE B.some_column IS NULL OR B.some_column
= 'some value that some_column would never had' the query takes 2 second and
gives normal result (190 000).
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: aray1985@yahoo.com
Subject: Re: BUG #8196: problem with left join and is null check
In-Reply-To: <E1UiQr6-0008IE-IG@wrigleys.postgresql.org>
References: <E1UiQr6-0008IE-IG@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox