Re: pg_connect sometimes works sometimes not

From: "pobox(at)verysmall(dot)org" <pobox(at)verysmall(dot)org>
To: Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_connect sometimes works sometimes not
Date: 2007-04-26 07:59:04
Message-ID: 46305BC8.9040800@verysmall.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Huxton wrote:
> Did you try pg_last_error()?

pg_last_error() does not seem to work. It requires connection as
parameter, so if pg_connect() fails - it has nothing to operate on.

Or am I missing something?

> Are you logging connection attempts/failures? Details in the manuals.

Checked the manual, but found only parameter to log the successful
connections.

Is there such to log the failed connection attempts (incl. the reason)?

Thank you,
Iv

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2007-04-26 08:01:38 Re: Where to find kind code for STATISTIC_KIND GEOMETRY?
Previous Message Simon Riggs 2007-04-26 07:21:15 Re: Vacuum-full very slow