From: Bruce Momjian Date: Mon, 25 Apr 2005 13:03:37 +0000 (+0000) Subject: Re-add item with better description: X-Git-Tag: REL8_1_0BETA1~915 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61cf53516eba02f8ae58da1acfa2db6bd129cab9;p=postgresql Re-add item with better description: > * Allow ORDER BY ... LIMIT 1 to select high/low value without sort or > index using a sequential scan for highest/lowest values > > Right now, if no index exists, ORDER BY ... LIMIT 1 requires we sort > all values to return the high/low value. Instead The idea is to do a > sequential scan to find the high/low value, thus avoiding the sort. > --- diff --git a/doc/TODO b/doc/TODO index fca37d8992..76213752d3 100644 --- a/doc/TODO +++ b/doc/TODO @@ -2,7 +2,7 @@ PostgreSQL TODO List ==================== Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) -Last updated: Sun Apr 24 21:42:27 EDT 2005 +Last updated: Mon Apr 25 09:03:30 EDT 2005 The most recent version of this document can be viewed at http://www.postgresql.org/docs/faqs.TODO.html. @@ -862,6 +862,13 @@ Optimizer / Executor ==================== * Add missing optimizer selectivities for date, r-tree, etc +* Allow ORDER BY ... LIMIT 1 to select high/low value without sort or + index using a sequential scan for highest/lowest values + + Right now, if no index exists, ORDER BY ... LIMIT 1 requires we sort + all values to return the high/low value. Instead The idea is to do a + sequential scan to find the high/low value, thus avoiding the sort. + * Precompile SQL functions to avoid overhead * Create utility to compute accurate random_page_cost value * Improve ability to display optimizer analysis using OPTIMIZER_DEBUG diff --git a/doc/src/FAQ/TODO.html b/doc/src/FAQ/TODO.html index 957a6176e8..a4b407d153 100644 --- a/doc/src/FAQ/TODO.html +++ b/doc/src/FAQ/TODO.html @@ -8,7 +8,7 @@

PostgreSQL TODO List

Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
-Last updated: Sun Apr 24 21:42:27 EDT 2005 +Last updated: Mon Apr 25 09:03:30 EDT 2005

The most recent version of this document can be viewed at
http://www.postgresql.org/docs/faqs.TODO.html. @@ -787,6 +787,12 @@ first.