Re: pgsql: Remove item, not sure what it refers to:

From: Kris Jurka <books(at)ejurka(dot)com>
To: Bruce Momjian <momjian(at)svr1(dot)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Remove item, not sure what it refers to:
Date: 2005-04-25 06:22:03
Message-ID: Pine.BSO.4.56.0504250113010.20569@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Sat, 23 Apr 2005, Bruce Momjian wrote:

> Log Message:
> -----------
> Remove item, not sure what it refers to:
>
> < * Allow ORDER BY ... LIMIT 1 to select high/low value without sort or
> < index using a sequential scan for highest/lowest values
> <
> < If only one value is needed, there is no need to sort the entire
> < table. Instead a sequential scan could get the matching value.
> <

This is actually a suggestion from Oleg here:

http://archives.postgresql.org/pgsql-general/2002-04/msg00464.php

double min = DBL_MAX;
for (i=0; i<N; i++) {
if (data[i] < min) {
min = data[i];
}
}

Kris Jurka

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-04-25 07:00:32 pgsql: Fix btree_gist to handle timetz zone correctly per recent
Previous Message Tom Lane 2005-04-25 04:27:13 pgsql: Avoid rechecking lossy operators twice in a bitmap scan plan.