pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Tuning a query with ORDER BY and LIMIT
Date: Thu, 23 Jun 2022 00:25:58 +0200
Message-ID: <20220622222558.2giv6yefxffswdwq@hjp.at> (raw)
In-Reply-To: <20220622221919.pnm7hgu5r7rxfwae@hjp.at>
References: <DM6PR03MB4332A41B10218AE854D63A72FAB29@DM6PR03MB4332.namprd03.prod.outlook.com>
	<20220622214837.c2wt734ywfzvpvav@hjp.at>
	<20220622221919.pnm7hgu5r7rxfwae@hjp.at>

On 2022-06-23 00:19:19 +0200, Peter J. Holzer wrote:
> On 2022-06-22 23:48:37 +0200, Peter J. Holzer wrote:
> > The index cannot be used for sorting, since the column used for sorting
> > isn't in the first position in the index.
> 
> compared to a single value
  ^ not

E-Mail really needs a "Supercedes" header.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (10+ messages)  latest in thread

Message-ID: <20220622222558.2giv6yefxffswdwq@hjp.at>
Permalink:  ../20220622222558.2giv6yefxffswdwq@hjp.at/
Also on:    postgresql.org/message-id/20220622222558.2giv6yefxffswdwq@hjp.at

 · 

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-general@postgresql.org
  Cc: hjp-pgsql@hjp.at
  Subject: Re: Tuning a query with ORDER BY and LIMIT
  In-Reply-To: <20220622222558.2giv6yefxffswdwq@hjp.at>
  References: <DM6PR03MB4332A41B10218AE854D63A72FAB29@DM6PR03MB4332.namprd03.prod.outlook.com> <20220622214837.c2wt734ywfzvpvav@hjp.at> <20220622221919.pnm7hgu5r7rxfwae@hjp.at> <20220622222558.2giv6yefxffswdwq@hjp.at>

* 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