From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: konst583@gmail.com
Subject: BUG #15064: Deadlock not detected on standby.
Date: Wed, 14 Feb 2018 11:08:08 +0000
Message-ID: <151860648802.1446.5335127783879034230@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15064
Logged by: Konstantin Evteev
Email address: konst583@gmail.com
PostgreSQL version: 9.5.11
Operating system: Debian GNU/Linux 8 (jessie)
Description:
Hello!
I have found a bug: deadlock not detected on standby.
It is actual for
PostgreSQL 9.5.11 on x86_64-pc-linux-gnu (Debian 9.5.11-1.pgdg80+1),
compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit
PostgreSQL 9.4.16 on x86_64-unknown-linux-gnu (Debian 9.4.16-1.pgdg80+1),
compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit
And this is not actual for
PostgreSQL 9.6.7 on x86_64-pc-linux-gnu (Debian 9.6.7-1.pgdg80+1), compiled
by gcc (Debian 4.9.2-10) 4.9.2, 64-bit
PostgreSQL 10.2 (Debian 10.2-1.pgdg80+1) on x86_64-pc-linux-gnu, compiled by
gcc (Debian 4.9.2-10) 4.9.2, 64-bit
May be this behavior needed to be backported to older versions
-- on primary
--create table items(item_id int);
--create table options(item_id int, v1 text);
---- 1 st session - primary
begin;
alter table options add v2 int;
---- 2-nd session standby
begin;
select * from items;
---- 1 st session - primary
alter table items add a text;
on standby
select * from options;
deadlock not detected
in versions 9.6 and 10 - it's ok
---------------------------------------
ERROR: deadlock detected
LINE 1: select * from options;
^
DETAIL: Process 25364 waits for AccessShareLock on relation 17388 of
database 17384; blocked by process 25322.
Process 25322 waits for AccessExclusiveLock on relation 17385 of database
17384; blocked by process 25364.
HINT: See server log for query details.
-----------------------------------------
--
Konstantin Evteev.
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: noreply@postgresql.org, konst583@gmail.com
Subject: Re: BUG #15064: Deadlock not detected on standby.
In-Reply-To: <151860648802.1446.5335127783879034230@wrigleys.postgresql.org>
References: <151860648802.1446.5335127783879034230@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