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

Re: Persistent Connects (pg_pconnect)

From: Keith Wong <keith(at)e-magine(dot)com(dot)au>
To: Colleen Williams <colleen(at)digital-arts(dot)co(dot)uk>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Persistent Connects (pg_pconnect)
Date: 2000-11-21 13:25:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
Hi Colleen,

When you use specify a host parameter... Php will attempt to connect to 
your postgres server using TCP/IP...
if you are not running the postgres backend with the -i option, then these 
connections won't happen. When you don't
specify a host name then Php will use a local Unix socket.

Not sure about the persistant database connection stuff. What version of 
Php are you using?
The only thing I could say, is to try explicitly closing the persistent 
database connections in your Php code.
Maybe there is a bug in Php.

Hope this helps,

At 12:34 PM 21/11/2000 +0000, Colleen Williams wrote:
>Hello all,
>I am having some problems with persistent connections.
>The PHP scripts in my content management system (CMS) are connecting using 
>pg_pconnect(" dbname='MYDB' user='user' password='password'' 
>port='5432'  "). I have not been able to connect to the PostgreSQL 
>database when I include the host parameter in the pg_pconnect string and I 
>don't understand why. Each time one of us uses the CMS, a new persistent 
>connection process owned by postgres is started up. With 3 people 
>accessing the CMS sporadically, 32 persistent connections are in existence 
>and then Linux tells me there are too many connections!  Sometimes I 
>believe existing connections are reused but not often!
>Has anyone else had this sort of experience with persistent connections? 
>It is driving me mad so I would appreciate any help or pointers you might have.
>Colleen Williams
>0207 484 8825
>Digital Arts | British Columbia House | 1 Regent Street | London | SW1Y 4NR

In response to

pgsql-sql by date

Next:From: Keith WongDate: 2000-11-21 13:31:09
Subject: Re: Persistent Connects (pg_pconnect)
Previous:From: Aristeu Gil Alves JuniorDate: 2000-11-21 13:07:32
Subject: Blob Upload

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