X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F12CD52861 for ; Wed, 8 Jun 2005 22:13:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03734-03 for ; Thu, 9 Jun 2005 01:13:29 +0000 (GMT) Received: from hm171.locaweb.com.br (hm171.locaweb.com.br [200.234.203.7]) by svr1.postgresql.org (Postfix) with SMTP id 8BD255284D for ; Wed, 8 Jun 2005 22:13:27 -0300 (ADT) Received: (qmail 89855 invoked from network); 9 Jun 2005 01:13:35 -0000 Received: from unknown (10.1.10.20) by hm171.locaweb.com.br with QMQP; 9 Jun 2005 01:13:35 -0000 Received: from unknown (HELO ?192.168.0.1?) (am@cosmodata.com.br@200.155.192.204) by hm20.locaweb.com.br with SMTP; 9 Jun 2005 01:13:28 -0000 Message-ID: <42A797B5.3060300@pobox.com> Date: Wed, 08 Jun 2005 22:13:25 -0300 From: Alain User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: Sql-Postgre Subject: Re: SELECT very slow References: <27961.1118275606@sss.pgh.pa.us> In-Reply-To: <27961.1118275606@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/123 X-Sequence-Number: 21724 Tom Lane escreveu: > Thomas Kellerer writes: > >>Is there anything I can do, to convince PG to return the first row more >>quickly? Are you now looking for the LIMIT ? SELECT * FROM table LIMIT 1; and when when you wnat the rest of it: SELECT * FROM table OFFSET 1; Alain