From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Ryszard Kurek <rychu@sky.pl>
Cc: pgsql-interfaces@postgreSQL.org
Subject: RE: [INTERFACES] Table viewer for big sorted tables
Date: Mon, 18 Oct 1999 17:29:33 +0900
Message-ID: <000d01bf1942$e7d20560$2801007e@cadzone.tpf.co.jp> (raw)
In-Reply-To: <19991017113956.A1028@fnet.pl>
> -----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
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-interfaces@postgresql.org
Cc: Inoue@tpf.co.jp, rychu@sky.pl
Subject: Re: [INTERFACES] Table viewer for big sorted tables
In-Reply-To: <000d01bf1942$e7d20560$2801007e@cadzone.tpf.co.jp>
References: <19991017113956.A1028@fnet.pl> <000d01bf1942$e7d20560$2801007e@cadzone.tpf.co.jp>
* 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