Skip site navigation (1) Skip section navigation (2)

Re: Is pgsql threadsafe?

From: Chris <dmagick(at)gmail(dot)com>
To: William Temperley <willtemperley(at)gmail(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Is pgsql threadsafe?
Date: 2008-03-14 00:10:58
Message-ID: 47D9C292.6030901@gmail.com (view raw or flat)
Thread:
Lists: pgsql-php
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/

In response to

pgsql-php by date

Next:From: fouratDate: 2008-04-30 01:21:58
Subject: fourat wants to keep up with you on Twitter
Previous:From: William TemperleyDate: 2008-03-13 23:21:33
Subject: Is pgsql threadsafe?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group