Re: Number of connections - Mailing list pgsql-php

From Christopher Kings-Lynne
Subject Re: Number of connections
Date
Msg-id 15ff01c320d0$e89bb1f0$6500a8c0@fhp.internal
Whole thread Raw
In response to Number of connections  ("David Busby" <busby@pnts.com>)
Responses Re: Number of connections
List pgsql-php
> Maybe a stupid question, but I wondered if when using persisten
> connection, I could be sure there would be no problem. From the doc,
> currval  "Returns the value most recently obtained by nextval  for this
> sequence in the current server process."
>
> Can you confirm me several script using the same persistent connection
> in parallel are in separate server processes?

PHP will execute 'begin; rollback;' to your connection before passing it to
another PHP process, guaranteeing that unclosed transactions won't leak.

Chris


pgsql-php by date:

Previous
From: Raphael Bauduin
Date:
Subject: Re: Number of connections
Next
From: "Christopher Kings-Lynne"
Date:
Subject: phpPgAdmin 3.0 Beta 1 Released