From: Alex Pilosov <alex@pilosoft.com>
To: Gerald Gutierrez <gml1@coldresist.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Getting row with id=max(id)
Date: Thu, 7 Jun 2001 15:51:38 -0400 (EDT)
Message-ID: <Pine.BSO.4.10.10106071550070.5424-100000@spider.pilosoft.com> (raw)
In-Reply-To: <5.1.0.14.0.20010607120835.02bbbd60@coldresist.com>
On Thu, 7 Jun 2001, Gerald Gutierrez wrote:
> Perhaps if the server internally rewrote the second query into the first,
> it would make the intuitive version much faster. The same can be done for
> min() and perhaps other functions as well.
Unfortunately, currently that's not possible, because of the design of
aggregate functions (they are pluggable, and the API for aggregate
functions has no support for understanding that an index may be used to
compute an aggregate). It'd be nice for a TODO item...:
-alex
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-sql@postgresql.org
Cc: alex@pilosoft.com, gml1@coldresist.com
Subject: Re: Getting row with id=max(id)
In-Reply-To: <Pine.BSO.4.10.10106071550070.5424-100000@spider.pilosoft.com>
References: <5.1.0.14.0.20010607120835.02bbbd60@coldresist.com> <Pine.BSO.4.10.10106071550070.5424-100000@spider.pilosoft.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