BUG #11803: avoid "distinct" logic if "limit 1" specified

From: socketpair(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #11803: avoid "distinct" logic if "limit 1" specified
Date: 2014-10-26 21:42:07
Message-ID: 20141026214207.2612.157@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 11803
Logged by: Korenberg Mark
Email address: socketpair(at)gmail(dot)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/90
http://doc.ponyorm.com/queries.html#comment-1654734639

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jim Nasby 2014-10-27 04:12:10 Re: [HACKERS] ltree::text not immutable?
Previous Message Tom Lane 2014-10-26 20:46:13 Re: ltree::text not immutable?