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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bert(dot)horvath(at)fh-erfurt(dot)de
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: C-Interface Amound of Tupels in Result after COPYout
Date: 2007-11-15 15:27:00
Message-ID: 2564.1195140420@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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 fr
> 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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bert Horvath 2007-11-15 15:36:10 Re: C-Interface Amound of Tupels in Result after COPYout
Previous Message Bert Horvath 2007-11-15 12:15:13 C-Interface Amound of Tupels in Result after COPYout