agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: Donald Carlile <carlile@me.com>
To: pgsql-interfaces@postgresql.org
Subject: PQExec returns null question
Date: Mon, 20 Oct 2014 09:53:20 -0700
Message-ID: <D2BB3EEC-5FA7-4EB3-B232-ADBBC06590B0@me.com> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-interfaces>

Our OS X application uses PostgreSQL as a back end through pqlib. Some of our customers are reporting occasional PGRES_FATAL_ERRORs, but PQresultErrorMessage 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’t 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 continues for every subsequent query.  WE have found that restarting the machine will remedy it for a time, but is there a less drastic action we can take that will also remedy it? Perhaps stopping and starting PostgreSQL? Or are system resources being consumed to the level that a system restart is required?

Many Thanks,
Don Carlile

-- 
Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces



view thread (3+ messages)  latest in thread

Message-ID: <D2BB3EEC-5FA7-4EB3-B232-ADBBC06590B0@me.com>
Permalink:  ../D2BB3EEC-5FA7-4EB3-B232-ADBBC06590B0@me.com/
Also on:    postgresql.org/message-id/D2BB3EEC-5FA7-4EB3-B232-ADBBC06590B0@me.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: carlile@me.com
  Subject: Re: PQExec returns null question
  In-Reply-To: <D2BB3EEC-5FA7-4EB3-B232-ADBBC06590B0@me.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox