pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: daniele.varrazzo@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7572: virtualxid lock held by bgwriter on promoted slaves
Date: Wed, 26 Sep 2012 21:33:26 +0000
Message-ID: <E1TGzEU-0005zV-JC@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      7572
Logged by:          Daniele Varrazzo
Email address:      daniele.varrazzo@gmail.com
PostgreSQL version: 9.1.4
Operating system:   Linux
Description:        

Hello,

when a slave is promoted, the pgwriter keeps holding a lock with virtualxid
"1/1" and virtualtransaction "-1/0". Such lock stops pg_reorg to run (as
reported here:
http://pgfoundry.org/tracker/index.php?func=detail&aid=1011203&group_id=1000411&atid=137...)
but I've verified the same condition on 9.1.4).

Is it possible to free that lock on slave promotion?

Is it safe to ignore that lock for pg_reorg sake? The program is which is
probably waiting for all the transactions to finish before swapping the
table in the system catalog but I'm not sure about that yet.






view thread (3+ messages)  latest in thread

Message-ID: <E1TGzEU-0005zV-JC@wrigleys.postgresql.org>
Permalink:  ../E1TGzEU-0005zV-JC@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1TGzEU-0005zV-JC@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: daniele.varrazzo@gmail.com
  Subject: Re: BUG #7572: virtualxid lock held by bgwriter on promoted slaves
  In-Reply-To: <E1TGzEU-0005zV-JC@wrigleys.postgresql.org>
  References: <E1TGzEU-0005zV-JC@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