From: Keith Gray <keith@heart.com.au>
To: SQL PostgreSQL <pgsql-sql@postgresql.org>
Subject: Slow performance on MAX(primary_key)
Date: Tue, 15 Oct 2002 15:01:58 +1000
Message-ID: <3DABA146.7010902@heart.com.au> (raw)
Help,
I have just been comparing some large table performance
under 7.1 using the
select max(primary key)from table;
We are using this for various functions including sequence.
It is taking 9 seconds to return this from around 1 million records.
Shouldn't this be an instantaneous lookup?
--
Keith Gray
Technical Services Manager
Heart Consulting Services
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: keith@heart.com.au
Subject: Re: Slow performance on MAX(primary_key)
In-Reply-To: <3DABA146.7010902@heart.com.au>
* 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