Skip site navigation (1) Skip section navigation (2)

Re: C-Interface Amound of Tupels in Result after COPYout

From: Bert Horvath <bert(dot)horvath(at)fh-erfurt(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: C-Interface Amound of Tupels in Result after COPYout
Date: 2007-11-15 15:36:10
Message-ID: 473C676A.2070805@fh-erfurt.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
i have allready tryed out this it allways returns 0...

Tom Lane schrieb:
> Bert Horvath <bert(dot)horvath(at)fh-erfurt(dot)de> 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
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
> 

-- 
Bert Horvath
MSc Angewandte Informatik
FB Gebäudetechnik und Informatik
wissenschaftlicher Mitarbeiter, Projekt MoSDeP

Fachhochschule Erfurt - University of Applied Sciences
Altonaer Str. 25, D-99085 Erfurt (Haus 10, Raum 10.01.09)
Tel: +49 361 / 6700 - 393
Fax: +49 361 / 6700 - 8960
E-Mail: bert(dot)horvath(at)fh-erfurt(dot)de


In response to

Responses

pgsql-interfaces by date

Next:From: Tom LaneDate: 2007-11-15 16:14:00
Subject: Re: C-Interface Amound of Tupels in Result after COPYout
Previous:From: Tom LaneDate: 2007-11-15 15:27:00
Subject: Re: C-Interface Amound of Tupels in Result after COPYout

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group