pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7572: virtualxid lock held by bgwriter on promoted slaves
3+ messages / 2 participants
[nested] [flat]
* BUG #7572: virtualxid lock held by bgwriter on promoted slaves
@ 2012-09-26 21:33 daniele.varrazzo@gmail.com
2012-09-27 21:29 ` Re: BUG #7572: virtualxid lock held by bgwriter on promoted slaves Simon Riggs <simon@2ndQuadrant.com>
0 siblings, 1 reply; 3+ messages in thread
From: daniele.varrazzo@gmail.com @ 2012-09-26 21:33 UTC (permalink / raw)
To: pgsql-bugs
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #7572: virtualxid lock held by bgwriter on promoted slaves
2012-09-26 21:33 BUG #7572: virtualxid lock held by bgwriter on promoted slaves daniele.varrazzo@gmail.com
@ 2012-09-27 21:29 ` Simon Riggs <simon@2ndQuadrant.com>
2012-11-30 00:18 ` Re: BUG #7572: virtualxid lock held by bgwriter on promoted slaves Simon Riggs <simon@2ndQuadrant.com>
0 siblings, 1 reply; 3+ messages in thread
From: Simon Riggs @ 2012-09-27 21:29 UTC (permalink / raw)
To: daniele.varrazzo@gmail.com; +Cc: pgsql-bugs
On 26 September 2012 22:33, <daniele.varrazzo@gmail.com> wrote:
> 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.
This one is mine.... I don't think its important we hold that lock,
but will check.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #7572: virtualxid lock held by bgwriter on promoted slaves
2012-09-26 21:33 BUG #7572: virtualxid lock held by bgwriter on promoted slaves daniele.varrazzo@gmail.com
2012-09-27 21:29 ` Re: BUG #7572: virtualxid lock held by bgwriter on promoted slaves Simon Riggs <simon@2ndQuadrant.com>
@ 2012-11-30 00:18 ` Simon Riggs <simon@2ndQuadrant.com>
0 siblings, 0 replies; 3+ messages in thread
From: Simon Riggs @ 2012-11-30 00:18 UTC (permalink / raw)
To: daniele.varrazzo@gmail.com; +Cc: pgsql-bugs
On 27 September 2012 22:29, Simon Riggs <simon@2ndquadrant.com> wrote:
> On 26 September 2012 22:33, <daniele.varrazzo@gmail.com> wrote:
>> 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.
>
> This one is mine.... I don't think its important we hold that lock,
> but will check.
This was an interesting bug to track down and certainly had me stumped
for some time.
Nothing at all todo with the WALwriter. It turns out that the Startup
process never ended its VirtualTransaction, which caused 2 separate
bugs in 9.0/9.1 and 9.2/HEAD. The bugs in 9.2+ were only visible
because of lack of initialisation of the fp fields, also fixed.
Thanks for the bug report.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-11-30 00:18 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-09-26 21:33 BUG #7572: virtualxid lock held by bgwriter on promoted slaves daniele.varrazzo@gmail.com
2012-09-27 21:29 ` Simon Riggs <simon@2ndQuadrant.com>
2012-11-30 00:18 ` Simon Riggs <simon@2ndQuadrant.com>
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