Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 5B9B62E2D6A for ; Thu, 15 Nov 2007 11:27:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 79842-08 for ; Thu, 15 Nov 2007 11:26:54 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 869FF2E2D59 for ; Thu, 15 Nov 2007 11:27:11 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id lAFFR0XG002565; Thu, 15 Nov 2007 10:27:00 -0500 (EST) To: bert.horvath@fh-erfurt.de cc: pgsql-interfaces@postgresql.org Subject: Re: C-Interface Amound of Tupels in Result after COPYout In-reply-to: <473C3851.6060300@fh-erfurt.de> References: <473C3851.6060300@fh-erfurt.de> Comments: In-reply-to Bert Horvath message dated "Thu, 15 Nov 2007 13:15:13 +0100" Date: Thu, 15 Nov 2007 10:27:00 -0500 Message-ID: <2564.1195140420@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/7 X-Sequence-Number: 6651 Bert Horvath writes: > do i have any chance to get the amount of tupels in the result set after > executing a query with a copy command? Its not a problem to count the > columns with PQnFields(*conn,*result) but there is no documentation für > PQnTupels(*conn,*result) and it does not work. PQcmdTuples. PQnTuples is for the number of rows actually returned to the client by a SELECT. regards, tom lane