Thread: pg_connect(): Cannot create new link. Too many open links (0)

pg_connect(): Cannot create new link. Too many open links (0)

From
mauro.folcarelli@sistinf.it
Date:
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name      : Mauro Folcarelli
Your email address  : mauro.folcarelli@sistinf.it


System Configuration
---------------------
  Architecture                                  : AMD Duron

  Operating System                                 : 2.4.22-1.2115.nptl
                              (From Fedora Core 1)

  PostgreSQL version                            : PostgreSQL-7.3.4-2  and
                                                  PostgreSQL-7.3.4-11

  PHP version                                   : 4.3.3-6 and
                                                : 4.3.4-1.1

  Compiler used                          :   (gcc is 3.3.2-1, but I didn't
compile anything)

Please enter a FULL description of your problem:
------------------------------------------------

I migrated from (postgresql-7.3.2-3 and php-4.2.2-17) to
 (postgresql-7.3.4-2 and php-4.3.3-6).

When I connect to the Database via php, I get the following message
(and the connection aborts):

Warning: pg_connect(): Cannot create new link. Too many open links (0).

I didn't change any configuration file: everything used to work.
It's the first connection to the database
(max connections should be 32 by default, not 0!).


Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------





If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
May be it has already been fixed in a PostgreSQL release > 7.3.4-11
or a php-pgsql release > 4.3.4-1.1 ?

Thanks a lot.
Mauro