pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brent R. Matzelle <bmatzelle@yahoo.com>
To: Pgsql-php \(E-mail\) <pgsql-php@postgresql.org>
Subject: RE: pg_connect vs. pg_pconnect
Date: Fri, 10 Aug 2001 14:00:23 -0700 (PDT)
Message-ID: <20010810210023.10193.qmail@web13008.mail.yahoo.com> (raw)
In-Reply-To: <59358A738F45D51186A30008C74CE2500A084B@slc-exc1.ctron.com>

--- "Hunter, Ray" <rhunter@enterasys.com> wrote:
> I took the advise of Brent Matzelle about 'not mixing
> connections' and
> switched to using pg_connect.  This has solved all my
> problems.  I am
> currently using php4.0.4pl1-9 and postgres 7.0.3 on Redhat
> 7.1.
>  
> I have no connections that are persisent and found that even
> with all my
> queries I can use the same connection.

I am glad that it is working correctly.  Also, I also have had
problems with connections when trying to use pg_pconnect() while
specifying a remote database host.  This is true with several of
the PHP *_pconnect() functions that I have tested.  So my rule
of thumb is use pg_pconnect() only if the database is located on
the localhost, otherwise use pg_connect().

Brent

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/



view thread (11+ messages)

Message-ID: <20010810210023.10193.qmail@web13008.mail.yahoo.com>
Permalink:  ../20010810210023.10193.qmail@web13008.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010810210023.10193.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: <20010810210023.10193.qmail@web13008.mail.yahoo.com>
  References: <59358A738F45D51186A30008C74CE2500A084B@slc-exc1.ctron.com> <20010810210023.10193.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