X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8B163D1CAD1 for ; Thu, 4 Mar 2004 15:03:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 00114-09 for ; Thu, 4 Mar 2004 11:03:25 -0400 (AST) Received: from marvin.harmless.hu (marvin.harmless.hu [195.70.51.173]) by svr1.postgresql.org (Postfix) with ESMTP id 17D48D1C96B for ; Thu, 4 Mar 2004 11:03:23 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by marvin.harmless.hu (Postfix) with ESMTP id 994EA10001298; Thu, 4 Mar 2004 16:03:52 +0100 (CET) Received: from marvin.harmless.hu ([127.0.0.1]) by localhost (marvin [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25286-01; Thu, 4 Mar 2004 16:03:52 +0100 (CET) Received: from marvin.harmless.hu (marvin.harmless.hu [195.70.51.173]) by marvin.harmless.hu (Postfix) with ESMTP id 34C1710001296; Thu, 4 Mar 2004 16:03:52 +0100 (CET) Date: Thu, 4 Mar 2004 16:03:52 +0100 (CET) From: Gergely Czuczy X-X-Sender: phoemix@localhost To: Tom Lane Cc: pgsql-interfaces Subject: Re: libpq PQexecPrepared returns NULL In-Reply-To: <25614.1078412346@sss.pgh.pa.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at harmless.hu X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/6 X-Sequence-Number: 4785 hello the strange thing is -- what i've forgot to mention -- is that PQerrorMessage returns an empty string, so from this i don't know the source of the error. how can I check if it is _really_ out of memory? i have 1G RAM in the box, and shm values are set: kernel.shmmax = 536870912 kernel.shmall = 536870912 Bye, Gergely Czuczy mailto: phoemix@harmless.hu PGP: http://phoemix.harmless.hu/phoemix.pgp The point is, that geeks are not necessarily the outcasts society often believes they are. The fact is that society isn't cool enough to be included in our activities. On Thu, 4 Mar 2004, Tom Lane wrote: > Gergely Czuczy writes: > > i've got a very strange problem, PQexecPrepared returns NULL, but if i > > immadietly rerun the query it will run normally, returning the query > > result. what can be the problem, and how could I track it down, solve it? > > Check PQerrorMessage(). > > AFAIR the only reasons for a null result (instead of a possibly-error > PGresult) would be out-of-memory or connection failure. > > regards, tom lane >