Re: pg_connect sometimes works sometimes not

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_connect sometimes works sometimes not
Date: 2007-04-25 14:59:25
Message-ID: 462F6CCD.9090900@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 25/04/2007 15:50, pobox(at)verysmall(dot)org wrote:

> Thought of using pg_result_error - but it seems applicable only to
> queries (i.e. with pg_query or pg_execute). How can I get an error code?

pg_last_error()

http://www.php.net/manual/en/function.pg-last-error.php

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
---------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-04-25 15:03:53 Re: pg_connect sometimes works sometimes not
Previous Message Andrew Dunstan 2007-04-25 14:56:51 Re: [HACKERS] Kill a Long Running Query