pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: cdalxndr@yahoo.com
Subject: BUG #15618: Duplicating a join clause breaks index use
Date: Fri, 01 Feb 2019 17:38:39 +0000
Message-ID: <15618-5357e448d7cbeb27@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15618
Logged by:          cd a
Email address:      cdalxndr@yahoo.com
PostgreSQL version: 10.3
Operating system:   Windows 10
Description:        

Adding a unused join clause to the query, modifies the run time from 50ms to
4seconds.
No columns from the join clause are returned and the joined table is not
used in other places.
The join clause is a duplicate of another one that is used for further
joining.

The joined clause should have been automatically removed as it has no side
effects, thus using indices and optimizing query runtime.



view thread (8+ messages)  latest in thread

Message-ID: <15618-5357e448d7cbeb27@postgresql.org>
Permalink:  ../15618-5357e448d7cbeb27@postgresql.org/
Also on:    postgresql.org/message-id/15618-5357e448d7cbeb27@postgresql.org

 · 

reply

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: noreply@postgresql.org, cdalxndr@yahoo.com
  Subject: Re: BUG #15618: Duplicating a join clause breaks index use
  In-Reply-To: <15618-5357e448d7cbeb27@postgresql.org>
  References: <15618-5357e448d7cbeb27@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