RE: [INTERFACES] Table viewer for big sorted tables - Mailing list pgsql-interfaces

From Hiroshi Inoue
Subject RE: [INTERFACES] Table viewer for big sorted tables
Date
Msg-id 000d01bf1942$e7d20560$2801007e@cadzone.tpf.co.jp
Whole thread Raw
In response to [INTERFACES] Table viewer for big sorted tables  (Ryszard Kurek <rychu@sky.pl>)
List pgsql-interfaces
> -----Original Message-----
> From: owner-pgsql-interfaces@postgreSQL.org
> [mailto:owner-pgsql-interfaces@postgreSQL.org]On Behalf Of Ryszard Kurek
> Sent: Sunday, October 17, 1999 6:40 PM
> To: pgsql-interfaces@postgreSQL.org
> Subject: [INTERFACES] Table viewer for big sorted tables
> 
> 
> On Sat, Oct 16, 1999 at 04:20:30PM -0400, Tom Lane wrote:
> > Ryszard Kurek <rychu@sky.pl> writes:
> > > The slow version is:
> > > SELECT min(product_symbol) FROM products WHERE product_name > 
> 'current_product';
> > 
> > Try
> > 
> > SELECT ... FROM products WHERE product_name > 'current_product' 
> ORDER BY product_name LIMIT 1;
> 
> after some tests....
> 
> above statement works great, but this no :
>  SELECT ... FROM products WHERE product_name < 'current_product' 
>  ORDER BY product_name DESC LIMIT 1;
> :(
>

This would also work in 7.0.
You could try it in the current snapshot.

Regards.

Hiroshi Inoue
Inoue@tpf.co.jp



pgsql-interfaces by date:

Previous
From: Dave Page
Date:
Subject: RE: [INTERFACES] ODBC: 'Insufficient base table information for u pdating or refreshing' error with ADO
Next
From: Bob Parkinson
Date:
Subject: ...