Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XgGGI-0007We-Ay for pgsql-interfaces@arkaria.postgresql.org; Mon, 20 Oct 2014 16:56:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XgGGH-0005pd-N3 for pgsql-interfaces@arkaria.postgresql.org; Mon, 20 Oct 2014 16:56:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XgGGH-0005pW-1h for pgsql-interfaces@postgresql.org; Mon, 20 Oct 2014 16:56:49 +0000 Received: from st11p02mm-asmtpout001.mac.com ([17.172.220.236] helo=st11p02mm-asmtp001.mac.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XgGGC-00034T-CC for pgsql-interfaces@postgresql.org; Mon, 20 Oct 2014 16:56:46 +0000 Received: from dons-mbp.home (pool-96-229-129-152.lsanca.fios.verizon.net [96.229.129.152]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <0NDR006ZD5KW7S90@st11p02mm-asmtp001.mac.com> for pgsql-interfaces@postgresql.org; Mon, 20 Oct 2014 16:53:22 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.28,0.0.0000 definitions=2014-10-20_03:2014-10-20,2014-10-20,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=4 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1408290000 definitions=main-1410200161 From: Donald Carlile Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: quoted-printable Subject: PQExec returns null question Message-id: Date: Mon, 20 Oct 2014 09:53:20 -0700 To: pgsql-interfaces@postgresql.org MIME-version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-Pg-Spam-Score: -4.5 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org Our OS X application uses PostgreSQL as a back end through pqlib. Some of o= ur customers are reporting occasional PGRES_FATAL_ERRORs, but PQresultError= Message returns a blank string. I have looked at the sources, and as far as= I can tell, this condition can only occur when PQExec returns a null. The = docs say that this shouldn=92t happen except in out of memory conditions. I= am not using any Copy actions. I have two broad questions. 1) What can I do to prevent this from happening= ? 2) If it does happen, how can I remedy it? I have increased the shared memory, and that seems to have helped somewhat,= but it still occurs. In our experience, once this starts happening, it con= tinues for every subsequent query. WE have found that restarting the machi= ne will remedy it for a time, but is there a less drastic action we can tak= e that will also remedy it? Perhaps stopping and starting PostgreSQL? Or ar= e system resources being consumed to the level that a system restart is req= uired? Many Thanks, Don Carlile --=20 Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces