Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by hub.org (8.9.3/8.9.3) with ESMTP id EAA04954 for ; Mon, 18 Oct 1999 04:26:57 -0400 (EDT) (envelope-from Inoue@tpf.co.jp) Received: from cadzone ([126.0.1.40] (may be forged)) by sd.tpf.co.jp (2.5 Build 2640 (Berkeley 8.8.6)/8.8.4) with SMTP id RAA00981; Mon, 18 Oct 1999 17:25:35 +0900 From: "Hiroshi Inoue" To: "Ryszard Kurek" Cc: 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> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: <19991017113956.A1028@fnet.pl> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 > -----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 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