pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris <dmagick@gmail.com>
To: William Temperley <willtemperley@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Is pgsql threadsafe?
Date: Fri, 14 Mar 2008 11:10:58 +1100
Message-ID: <47D9C292.6030901@gmail.com> (raw)
In-Reply-To: <439dc11e0803131621u5b7f7c62n6967cd5ad3354f95@mail.gmail.com>
References: <439dc11e0803131621u5b7f7c62n6967cd5ad3354f95@mail.gmail.com>

William Temperley wrote:
> Hi all,
> 
> Last week I found the php_pgsql extension wouldn't work on IIS6,
> windows server 2003, using php isapi. PHP was running fine, and I'm
> 99% certain the extension was loaded, extension_loaded() returned true
> and a call to pg_connect produced no error messages, but no connection
> either. No error messages were produced at all.
> When the extension was not loaded I got the usual pg_connect()
> undefined message.
> 
> I eventually got it running using fastcgi - which can run
> non-threadsafe php on multithreaded web servers.
> 
> Is php_pgsql threadsafe?  Is this usual behaviour?  In which case I'm
> going to abandon pgsql for pdo - I thought I was going to have to
> rewrite my entire application about 3 days from the deadline 'til it
> worked (hours of hair-tearing later) with fastcgi.

Probably a question better asked on the php-internals list (see 
http://www.php.net/mailing-lists.php) since they maintain the php-pgsql 
"module".

-- 
Postgresql & php tutorials
http://www.designmagick.com/



view thread (2+ messages)

Message-ID: <47D9C292.6030901@gmail.com>
Permalink:  ../47D9C292.6030901@gmail.com/
Also on:    postgresql.org/message-id/47D9C292.6030901@gmail.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: dmagick@gmail.com, willtemperley@gmail.com
  Subject: Re: Is pgsql threadsafe?
  In-Reply-To: <47D9C292.6030901@gmail.com>
  References: <439dc11e0803131621u5b7f7c62n6967cd5ad3354f95@mail.gmail.com> <47D9C292.6030901@gmail.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