Re: out of memory error

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: out of memory error
Date: 2011-07-06 00:04:05
Message-ID: 4E13A675.6070702@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/07/2011 11:12 PM, Geoffrey Myers wrote:

> my $result = $conn->exec($select);
>
> if ($result->resultStatus != PGRES_TUPLES_OK)
> {
> $error = $conn->errorMessage;
> die "Error: <$error> Failed: <$select>";
> }
>
> So you're saying this select request failing would not be logged to the
> postgres database log?

If that request failed due to a server-side error, then that error would
appear in the server logs.

If it failed for a client-side reason like the client running out of
memory, then at most the server would report an unexpected disconnect or
connection timeout when the client vanishes. The server has no way to
know a client process crashed out.

--
Craig Ringer

POST Newspapers
276 Onslow Rd, Shenton Park
Ph: 08 9381 3088 Fax: 08 9388 2258
ABN: 50 008 917 717
http://www.postnewspapers.com.au/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2011-07-06 00:53:33 Re: Read MS-SQL data into Postgres via ODBC link?
Previous Message Jonathan Brinkman 2011-07-05 23:38:25 Re: Read MS-SQL data into Postgres via ODBC link?