Re: Connection handling of Postgre under PHP

From: ljb <lbayuk(at)mindspring(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Connection handling of Postgre under PHP
Date: 2002-03-14 01:34:57
Message-ID: a6ouo0$1vp2$1@jupiter.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

stefan_landgraf(at)gmx(dot)de wrote:
> Hi group!
>
> When I use pg_pconnect(...) for connecting, is this connection
> exclusively reserved for the actual script or can other scripts
> running parallel use the same connection? I ask because I want to be
> sure that no other process will interfere into running transactions...

You can't do what you want, and it doesn't work the way you think.
Persistent connections gain you nothing in functionality as far as
scripts are concerned - it is purely a (supposed) performance issue.
Please read chapter 22 of the PHP manual, "Persistant Database Connections"
for more on this.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-03-14 02:16:31 Re: Strange Postgresql Indexing Behavior
Previous Message Fernando Lozano 2002-03-14 01:03:22 Distributed databases