Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Alvaro Herrera
On Fri, Nov 21, 2003 at 03:39:42PM +0530, Durai wrote: > The script content is: > > # cat testpgsql.php > > $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres"); > $result = pg_exec ($dbconn, "update table2 set C2=C2+1;"); > $result = pg_exec ($dbcon

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Shridhar Daithankar
Durai wrote: Hello Sridhar, Now, It works. Thanks lot. But Still I have doubt: 1. How MySQL works in this case? It has any default "autocommit"? Depends. What version of mysql you are using? If you are using mysql 3.x and/or non-innodb tables, you don't have transactions in

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Durai
idhar Daithankar" <[EMAIL PROTECTED]> To: "Shridhar Daithankar" <[EMAIL PROTECTED]> Cc: "Durai" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 5:28 PM Subject: Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL &

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Shridhar Daithankar
Damn.. I forgot to begin the transaction.. Shridhar Daithankar wrote: Durai wrote: Hello Shridhar, The script content is: ** *# cat te**stpgsql.php* * * $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres"); $result = pg_exec ($dbconn, "begin;"); $resu

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Durai
. - Original Message - From: "Shridhar Daithankar" <[EMAIL PROTECTED]> To: "Durai" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 4:09 PM Subject: Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Shridhar Daithankar
Durai wrote: Hello Shridhar, The script content is: ** *# cat te**stpgsql.php* * * $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres"); $result = pg_exec ($dbconn, "update table2 set C2=C2+1;"); $result = pg_exec ($dbconn, "update table2 set C2=C2-

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Marek Lewczuk
Użytkownik Durai napisał: > Hello Shridhar, > > The script content is: > ** *# cat te**stpgsql.php* > * > * > $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres"); > $result = pg_exec ($dbconn, "update table2 set C2=C2+1;"); > $result = pg_exec ($dbcon

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Durai
    - Original Message - From: "Shridhar Daithankar" <[EMAIL PROTECTED]> To: "Durai" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 3:33 PM Subject: Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL > Durai wrote:> >

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Shridhar Daithankar
Durai wrote: Hi All, I tested "concurrent testing" in MySQL. It works fine. But I couldn't do in PostgreSQL 7.3.4 on HPUX IPF. I got deadlock problem. I used the PHP script to update table( one script increment the column & another one decrement the column). Is the postgres suppo

[GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Durai
Hi All,               I tested "concurrent testing" in MySQL. It works fine. But I couldn't do in PostgreSQL 7.3.4 on HPUX IPF. I got deadlock problem.  I used the PHP script to update table( one script increment the column & another one decrement the column). Is the postgres support the co