From: immortaldragonm@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13598: Hang forever, but must rollback (deadlock)
Date: Mon, 31 Aug 2015 08:03:51 +0000
Message-ID: <20150831080351.2088.33853@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13598
Logged by: ImmortalDragon
Email address: immortaldragonm@gmail.com
PostgreSQL version: 9.4.4
Operating system: windows
Description:
table:
CREATE TABLE t1(id integer primary key);
libpq code:
c1 = PQconnectdb(conninfo);
c2 = PQconnectdb(conninfo);
res1 = PQexec(c1, "BEGIN");
PQclear(res1);
res1 = PQexec(c1, "INSERT INTO t1 (id) VALUES (104)");
PQclear(res1);
res2 = PQexec(c2, "BEGIN");
PQclear(res2);
res2 = PQexec(c2, "INSERT INTO t1 (id) VALUES (104)"); //hang here
PQclear(res2);
res2 = PQexec(c2, "END");
PQclear(res2);
res1 = PQexec(c1, "END");
PQclear(res1);
I use different connection in one thread (like different programs, as i
undestand).
I think, that postgres must detect deadlock and rollback one of transaction
with error. But it hang forever. Why? i think it's bug.
deadlock_timeout - default (1s)
i check other version of postgres, same result.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: immortaldragonm@gmail.com
Subject: Re: BUG #13598: Hang forever, but must rollback (deadlock)
In-Reply-To: <20150831080351.2088.33853@wrigleys.postgresql.org>
References: <20150831080351.2088.33853@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox