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 813DE531FE for ; Mon, 2 May 2005 12:20:54 -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 14961-09 for ; Mon, 2 May 2005 15:20:49 +0000 (GMT) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by svr1.postgresql.org (Postfix) with SMTP id BFC4053337 for ; Mon, 2 May 2005 12:20:47 -0300 (ADT) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Mon May 02 17:20:34 2005 +0200 Received: from rodos.fzk.de (resy6.fzk.de [141.52.68.10]) by resy5.fzk.de (8.12.7/8.12.7/SuSE Linux 0.6) with ESMTP id j42FKXsG013661; Mon, 2 May 2005 17:20:33 +0200 Message-ID: <42764540.EDC0C34C@rodos.fzk.de> Date: Mon, 02 May 2005 17:20:32 +0200 From: Christoph Haller X-Mailer: Mozilla 4.77 [en] (X11; U; HP-UX B.10.20 9000/780) X-Accept-Language: en MIME-Version: 1.0 To: Tom Lane Cc: Andreas Kretschmer , pgsql-sql@postgresql.org Subject: Re: how many tuples on a cursor? References: <20050502071358.GB5962@webserv.wug-glas.de> <42760C37.BD6531A8@rodos.fzk.de> <18483.1115046249@sss.pgh.pa.us> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS - amavis-milter (http://www.amavis.org/) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.025 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/14 X-Sequence-Number: 21327 Tom Lane wrote: > > Christoph Haller writes: > > What else seems to work is MOVE 2147483647 > > (INT_MAX) and then get the max number of rows > > by PQcmdTuples(). > > I'd suggest "MOVE FORWARD ALL" rather than hard-wiring assumptions > about the maximum possible value of infinity ;-) > Of course. I should have read the manual on this more carefully. Regards, Christoph