Re: [PHP-PEAR] possible bug in DB/pgsql.php

[email protected] ("Stig S. Bakken")
Newsgroups php.pear
Organization Fast Search & Transfer
Message-ID <[email protected]>
[email protected] wrote:
> 
> On 19 Feb 2001, at 13:27, Stig S. Bakken wrote:
> 
> > [email protected] wrote:
> > >
> > > Hmm, maybe I'm straying too far...I'm not too content of my own
> > > suggestions. Your turn...
> >
> > I've implemented your suggestion now and added a transaction test for
> > pgsql as well.  Could you give it a shot and see if it solves your
> > problem?
> >
> Hmm. Sadly, my work took out whole afternoon and I didn't have
> the time to do a real test of the source, so I just v-grepped it.
> I'll do a real benchmark ASAP... for the moment, I'm still wondering
> if it could work without storing somewhere the connection id. If you
> have more than one connection in a page, how do you recognize
> when one has an open transaction or not?

In the test (DB/tests/pgsql/011.phpt) I opened a separate unix domain
socket connection to postgres and do the select from that connection.  I
added a "dsn" property to DB_common to make replicating the connection
possible.

 - Stig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.