Re: problem with PQsendQuery/PQgetResult and COPY FROM statement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Massimiliano Poletto" <max(dot)poletto(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: problem with PQsendQuery/PQgetResult and COPY FROM statement
Date: 2006-05-25 14:03:38
Message-ID: 12549.1148565818@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Massimiliano Poletto" <max(dot)poletto(at)gmail(dot)com> writes:
>> If you call it exactly once, it'll say that exactly once. If you keep
>> calling it "millions of times", it'll keep saying that.

> OK. I wonder, though, why at some point it does in fact return 0.

Probably because you ran out of memory to create new PGresult structs.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-05-25 14:10:41 Re: file-locking and postmaster.pid
Previous Message Tom Lane 2006-05-25 14:02:56 Re: XLogArchivingActive