pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix potential assertion failure when reindexing a pg_class index
Date: Tue, 30 Apr 2019 08:24:56 -0400
Message-ID: <2c54a7e6-dddf-861d-4d76-e8e4681da0c9@2ndQuadrant.com> (raw)
In-Reply-To: <E1hLJ3w-0001FA-D7@gemulon.postgresql.org>
References: <E1hLJ3w-0001FA-D7@gemulon.postgresql.org>


On 4/29/19 11:04 PM, Andres Freund wrote:
> Fix potential assertion failure when reindexing a pg_class index.
>

There seem to be a number of regression test failures involving deadlock
resulting from this. e.g. on prion:


2019-04-30 03:20:12.772 UTC [15476:388] pg_regress/create_view LOG:  statement: alter table tt14t alter column f4 type integer using f4::integer;
2019-04-30 03:20:12.776 UTC [15479:450] pg_regress/create_index LOG:  statement: REINDEX TABLE pg_class;
2019-04-30 03:20:13.777 UTC [15476:389] pg_regress/create_view LOG:  process 15476 detected deadlock while waiting for AccessShareLock on relation 2662 of database 16384 after 1000.109 ms
2019-04-30 03:20:13.777 UTC [15476:390] pg_regress/create_view DETAIL:  Process holding the lock: 15479. Wait queue: .
2019-04-30 03:20:13.777 UTC [15476:391] pg_regress/create_view STATEMENT:  alter table tt14t alter column f4 type integer using f4::integer;
2019-04-30 03:20:13.777 UTC [15476:392] pg_regress/create_view ERROR:  deadlock detected
2019-04-30 03:20:13.777 UTC [15476:393] pg_regress/create_view DETAIL:  Process 15476 waits for AccessShareLock on relation 2662 of database 16384; blocked by process 15479.
	Process 15479 waits for ShareLock on transaction 2887; blocked by process 15476.
	Process 15476: alter table tt14t alter column f4 type integer using f4::integer;
	Process 15479: REINDEX TABLE pg_class;



cheers


andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services






view thread (8+ messages)  latest in thread

Message-ID: <2c54a7e6-dddf-861d-4d76-e8e4681da0c9@2ndQuadrant.com>
Permalink:  ../2c54a7e6-dddf-861d-4d76-e8e4681da0c9@2ndQuadrant.com/
Also on:    postgresql.org/message-id/2c54a7e6-dddf-861d-4d76-e8e4681da0c9@2ndQuadrant.com

 · 

reply

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-committers@postgresql.org
  Cc: andrew.dunstan@2ndquadrant.com, andres@anarazel.de
  Subject: Re: pgsql: Fix potential assertion failure when reindexing a pg_class index
  In-Reply-To: <2c54a7e6-dddf-861d-4d76-e8e4681da0c9@2ndQuadrant.com>
  References: <E1hLJ3w-0001FA-D7@gemulon.postgresql.org> <2c54a7e6-dddf-861d-4d76-e8e4681da0c9@2ndQuadrant.com>

* 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