Re: [BUGS] BUG #8434: Why does dead lock occur many times ?

2013-10-04 Thread Alvaro Herrera
I spent a lot of time looking at this issue. Your problem scenario can be reduced to the following test case: CREATE TABLE t (a INT); INSERT INTO t VALUES (1); The three sessions need to execute the following commands, in this sequence: -- Session 1 /* 1 */ BEGIN; SELECT * FROM t FOR UPDATE; -

Re: [BUGS] BUG #8434: Why does dead lock occur many times ?

2013-09-27 Thread Alvaro Herrera
Hi, Sorry I hadn't noticed this thread. Tomonari Katsumata escribió: > It seems to be related to some changes in > the [Improve concurrency of foreign key locking] commit(*). > (*) commitid : 0ac5ad5134f2769ccbaefec73844f8504c4d6182 > Because I could not reproduce "dead lock" before the commit.

Re: [BUGS] BUG #8434: Why does dead lock occur many times ?

2013-09-27 Thread Tomonari Katsumata
Hi, Thanks to your info, otsuka-san. It seems to be related to some changes in the [Improve concurrency of foreign key locking] commit(*). (*) commitid : 0ac5ad5134f2769ccbaefec73844f8504c4d6182 Because I could not reproduce "dead lock" before the commit. And I'm thinking that also this commit is

[BUGS] BUG #8434: Why does dead lock occur many times ?

2013-09-04 Thread katsumata . tomonari
The following bug has been logged on the website: Bug reference: 8434 Logged by: Tomonari Katsumata Email address: katsumata.tomon...@po.ntts.co.jp PostgreSQL version: 9.3rc1 Operating system: RedHatEnterpriseLinux 6.4(x86_64) Description: Hi, I'm testing PostgreSQL