Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: pg_connect sometimes works sometimes not



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group