From: socketpair@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #11803: avoid "distinct" logic if "limit 1" specified
Date: Sun, 26 Oct 2014 21:42:07 +0000
Message-ID: <20141026214207.2612.157@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: 11803
Logged by: Korenberg Mark
Email address: socketpair@gmail.com
PostgreSQL version: 9.3.1
Operating system: Linux
Description:
In other words,
query:
select * from tablename order by id limit 1
and query:
select distinct * from tablename order by id limit 1
should be planned exactly (as if distinct was not specified)
-----------------------
https://github.com/ponyorm/pony/issues/90http://doc.ponyorm.com/queries.html#comment-1654734639
--
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: socketpair@gmail.com
Subject: Re: BUG #11803: avoid "distinct" logic if "limit 1" specified
In-Reply-To: <20141026214207.2612.157@wrigleys.postgresql.org>
References: <20141026214207.2612.157@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