From: Grzegorz Jaśkiewicz <gryzman@gmail.com>
To: Richard Neill <rn214@cam.ac.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: Joint index including MAX() ?
Date: Sat, 9 Jan 2010 12:51:41 +0000
Message-ID: <2f4958ff1001090451j69934f2awce0a4c1fc7a27364@mail.gmail.com> (raw)
In-Reply-To: <4B487A8F.6000003@cam.ac.uk>
References: <4B487A8F.6000003@cam.ac.uk>
you can also try :
select val FROM table ORDER BY val DESC LIMIT 1;
which usually is much quicker.
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-performance@postgresql.org
Cc: gryzman@gmail.com, rn214@cam.ac.uk
Subject: Re: Joint index including MAX() ?
In-Reply-To: <2f4958ff1001090451j69934f2awce0a4c1fc7a27364@mail.gmail.com>
References: <4B487A8F.6000003@cam.ac.uk> <2f4958ff1001090451j69934f2awce0a4c1fc7a27364@mail.gmail.com>
* 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