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

Re: PHP: Too many open links (0) with libpg7.4.3

From: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: "NTPT" <ntpt(at)centrum(dot)cz>
Cc: "Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: PHP: Too many open links (0) with libpg7.4.3
Date: 2004-06-24 11:59:37
Message-ID: 200406240859.37609.martin@bugs.unl.edu.ar (view raw or flat)
Thread:
Lists: pgsql-general
El Jue 24 Jun 2004 08:19, NTPT escribió:
> Hi
>
>
> I try to  upgrade postgresql 7.3.3 to 7.4.3 on my machine running Apache
> 2.0.49 and PHP 4.3.7
>
> Because i use another path for postgres 7.4 there (luckily) stay a old
> libpg
> So while i compile php with --with-pgsql=shared an old, 7.3.3 libpg is used
> by PHP. Everything fine, run and works.
>
> But specifing for php configure corect path   --with-pgsql=path_to_new
> postgresq , pglib 7.4.3 is used and result  (after reboot ) is
>
> Warning: pg_pconnect(): Cannot create new link. Too many open links (0) .
>
> There was not a change of php.ini file and phpinfo() returns proper values
> , correctly find libpg7.4.3 and other properties. I even try to set
> pgsql.max_links and  pgsql.max_persistent    from -1 (unlimited) to some
> value without effect....

Maybe PG ran out of posible conections. Checkout how many conections you have 
open (PostgreSQL conections), and how many PHP has of those (php_info() will 
give you that info).

-- 
 08:55:02 up 14:28,  1 user,  load average: 0.18, 0.32, 0.45
-----------------------------------------------------------------
Martín Marqués        | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica  |  DBA, Programador, Administrador
             Universidad Nacional
                  del Litoral
-----------------------------------------------------------------

In response to

pgsql-general by date

Next:From: JeffDate: 2004-06-24 12:27:54
Subject: Re: pgHoster.com woes and looking for a new host
Previous:From: spiedDate: 2004-06-24 11:37:18
Subject: strange apllicaion error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group