For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > April 2007 > debugging pg_connect









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author debugging pg_connect
pobox@verysmall.org

2007-04-26, 7:57 am

Hello,

since we upgraded to the latest php and PostgreSQL - we started to get
frequent pg_connect() errors. What is sure is that they are not caused
by insufficient connections - PostgreSQL reports 100 connections
available and less than 10 used when the pg_connect fails.

pg_last_error() and the other error handling functions operate on
connection. So they do not seem useful when pg_connect() fails.

In the PostgreSQL documentation I could find out how to log successful
connections, but not how to login failed connections.

Could somebody advice me on possible ways to test?

Thank you,
Iv
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com