pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Hodgson <ahodgson@simkin.ca>
To: pgsql-php@postgresql.org
Subject: Re: PostgreSQL locking from PHP scripts
Date: Mon, 6 Nov 2006 11:42:17 -0800
Message-ID: <200611061142.17334@hal.medialogik.com> (raw)
In-Reply-To: <AD96DB84-8FB4-45B9-B71F-99497D34B05B@ehpg.net>
References: <20061026181147.50048.qmail@web51309.mail.yahoo.com>
	<200611061105.29055@hal.medialogik.com>
	<AD96DB84-8FB4-45B9-B71F-99497D34B05B@ehpg.net>

On Monday 06 November 2006 11:16, "Gavin M. Roy" <gmr@ehpg.net> wrote:
> Well you can use persistent connections.  Instead of pg_connect use
> pg_pconnect.   I don't know if it will keep the lock or not, I've not
> tested, but it seems like you'd need a pretty elaborate connection
> management setup to make sure you're locking and unlocking the
> records for the right client.

No, it won't.  pconnect and connect are guaranteed to work the same by PHP, 
so pconnect connections are reset at script end.  The only difference is 
connection overhead.

I've been trying to find a way around this to allow cursor usage, but there 
doesn't seem to be one.

-- 
"Thank God we don't get all the government we pay for." -- Will Rogers

view thread (12+ messages)  latest in thread

Message-ID: <200611061142.17334@hal.medialogik.com>
Permalink:  ../200611061142.17334@hal.medialogik.com/
Also on:    postgresql.org/message-id/200611061142.17334@hal.medialogik.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: ahodgson@simkin.ca
  Subject: Re: PostgreSQL locking from PHP scripts
  In-Reply-To: <200611061142.17334@hal.medialogik.com>
  References: <20061026181147.50048.qmail@web51309.mail.yahoo.com> <200611061105.29055@hal.medialogik.com> <AD96DB84-8FB4-45B9-B71F-99497D34B05B@ehpg.net> <200611061142.17334@hal.medialogik.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