pg.ddx.io pgsql-php@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Brent R. Matzelle <bmatzelle@yahoo.com>
To: pgsql-php@postgresql.org
Subject: RE: pg_connect vs. pg_pconnect
Date: Thu, 9 Aug 2001 06:49:19 -0700 (PDT)
Message-ID: <20010809134919.9991.qmail@web13008.mail.yahoo.com> (raw)
In-Reply-To: <59358A738F45D51186A30008C74CE2500A0846@slc-exc1.ctron.com>
--- "Hunter, Ray" <rhunter@enterasys.com> wrote:
> Chris,
>
> I am including the php source that has the pg_pconnect and the
> problems. On
> one php page, I am query the database multilple times to get
> specific data
> in order to populate a table for our engineers.
>
> I have to use it on the create_sub_table function.
>
> I have no idea why it does not work.
I personally never mix connection types as I always use
pg_pconnect() for every connection call. I consistently get one
PostgreSQL process for each Apache process.
Your code opens up a new PostgreSQL connection for each function
call, except for create_sub_table(). As a result, you can have
many idle database processes for each httpd process. You can
count on each non-pg_pconnect() connection to linger for a
minute or so and that will eat all your system resources with
only a few simultaneous users.
Brent
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
view thread (11+ messages) latest in thread
Message-ID: <20010809134919.9991.qmail@web13008.mail.yahoo.com> Permalink: ../20010809134919.9991.qmail@web13008.mail.yahoo.com/ Also on: postgresql.org/message-id/20010809134919.9991.qmail@web13008.mail.yahoo.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-php@postgresql.org Cc: bmatzelle@yahoo.com Subject: Re: pg_connect vs. pg_pconnect In-Reply-To: <20010809134919.9991.qmail@web13008.mail.yahoo.com> References: <59358A738F45D51186A30008C74CE2500A0846@slc-exc1.ctron.com> <20010809134919.9991.qmail@web13008.mail.yahoo.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox