Re: pgsql: Remove item, not sure what it refers to: - Mailing list pgsql-committers

From Kris Jurka
Subject Re: pgsql: Remove item, not sure what it refers to:
Date
Msg-id Pine.BSO.4.56.0504250113010.20569@leary.csoft.net
Whole thread Raw
In response to pgsql: Remove item, not sure what it refers to: < * Allow ORDER BY ...  (momjian@svr1.postgresql.org (Bruce Momjian))
Responses Re: pgsql: Remove item, not sure what it refers to:
List 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

pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Avoid rechecking lossy operators twice in a bitmap scan plan.
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix btree_gist to handle timetz zone correctly per recent