pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Michiel <michiel@ict4schools.nl>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #5997: [queryplan] PostgreSQL is sorting the query results when the result can only be 1 item.
Date: Fri, 29 Apr 2011 11:50:09 -0500
Message-ID: <4DBAA5F1020000250003D061@gw.wicourts.gov> (raw)
In-Reply-To: <201104290807.p3T872Gp079123@wwwmaster.postgresql.org>
References: <201104290807.p3T872Gp079123@wwwmaster.postgresql.org>

"Michiel" <michiel@ict4schools.nl> wrote:
 
> [query with ORDER BY clause]
 
> [plan which spends 0.039 ms sorting one row]
 
> What i see and expect:
> 
> I see that the query is sorted. But the result is max 1 item.
 
This is not a bug; it is a feature request for the planner.
 
If you see a way that a query can be reliably analyzed to determine
that the sort can be omitted which takes less than the 0.039 ms
required for the sort step, please suggest it.  But not on the bugs
list.
 
-Kevin



view thread (2+ messages)

Message-ID: <4DBAA5F1020000250003D061@gw.wicourts.gov>
Permalink:  ../4DBAA5F1020000250003D061@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DBAA5F1020000250003D061@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, michiel@ict4schools.nl
  Subject: Re: BUG #5997: [queryplan] PostgreSQL is sorting the query results when the result can only be 1 item.
  In-Reply-To: <4DBAA5F1020000250003D061@gw.wicourts.gov>
  References: <201104290807.p3T872Gp079123@wwwmaster.postgresql.org> <4DBAA5F1020000250003D061@gw.wicourts.gov>

* 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