并发测试PostgreSQL与MySQL [英] Concurrent testing PostgreSQL Vs MySQL

查看:96
本文介绍了并发测试PostgreSQL与MySQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我测试了并发测试在MySQL中。它工作正常。但我无法在HPUX IPF上使用PostgreSQL 7.3.4。我遇到了死锁问题。我使用PHP脚本更新表(一个脚本增加列和另一个脚本递减列)。 postgres支持并发访问更新数据库吗?

我收到以下错误:


test = #ERROR:检测到死锁

错误:检测到死锁

错误:检测到死锁

.....

Regs,

Durai。


---

外发邮件已通过无病毒验证。

由AVG检查反病毒系统( http://www.grisoft.com)

版本:6.0.538 /病毒数据库:333 - 发布日期:11/11/2003

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 concurrent access to update database?

I got the following errors:

test=# ERROR: deadlock detected
ERROR: deadlock detected
ERROR: deadlock detected
.....
Regs,
Durai.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.538 / Virus Database: 333 - Release Date: 11/11/2003

推荐答案

Durai写道:
Durai wrote:
大家好,
我测试了并发测试。在MySQL中。它工作正常。但我在HPUX IPF上的PostgreSQL 7.3.4中无法做到。我遇到了死锁问题。我使用PHP脚本来更新表(一个脚本增加列和&
另一个减少列)。 postgres支持并发访问更新数据库吗?

我收到以下错误:

test = #ERROR:检测到死锁
错误:检测到死锁
错误:检测到死锁
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
concurrent access to update database?

I got the following errors:

test=# ERROR: deadlock detected
ERROR: deadlock detected
ERROR: deadlock detected




您是否在任何地方提交了交易?我们能看到php代码吗?


Shridhar

---------------------- -----(播出结束)---------------------------

提示7:唐'不要忘记增加你的可用空间地图设置



Did you commited the transaction anywhere? Can we see the php code?

Shridhar
---------------------------(end of broadcast)---------------------------
TIP 7: don''t forget to increase your free space map settings


你好Shridhar,


脚本内容是:


#cat testpgsql.php

<?php
Hello Shridhar,

The script content is:

# cat testpgsql.php

<?php


dbconn = pg_connect (host = 172.16.1.158 port = 5432 dbname = test user = postgres);
dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres");


这篇关于并发测试PostgreSQL与MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆