pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Marco Nenciarini <marco.nenciarini@2ndquadrant.it>
To: pgsql-bugs@postgresql.org
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] BUG #13473: VACUUM FREEZE mistakenly cancel standby sessions
Date: Fri, 26 Jun 2015 18:13:31 -0500
Message-ID: <558DDC9B.6090001@BlueTreble.com> (raw)
In-Reply-To: <558D58B1.70400@2ndquadrant.it>
References: <20150626134310.3876.82768@wrigleys.postgresql.org>
	<558D58B1.70400@2ndquadrant.it>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 6/26/15 8:50 AM, Marco Nenciarini wrote:
>> >In the heap_xlog_freeze we need to subtract one to the value of cutoff_xid
>> >before passing it to ResolveRecoveryConflictWithSnapshot.
>> >
>> >
>> >
> Attached a proposed patch that solves the issue.

FWIW, I've reviewed the usage and the new logic looks correct.

It'd actually be nice if we also logged the most recent XID that 
actually got frozen. That's the XID that Hot Standby would actually care 
about (not the freeze limit).
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Data in Trouble? Get it in Treble! http://BlueTreble.com


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <558DDC9B.6090001@BlueTreble.com>
Permalink:  ../558DDC9B.6090001@BlueTreble.com/
Also on:    postgresql.org/message-id/558DDC9B.6090001@BlueTreble.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-bugs@postgresql.org
  Cc: Jim.Nasby@BlueTreble.com, marco.nenciarini@2ndquadrant.it, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] BUG #13473: VACUUM FREEZE mistakenly cancel standby sessions
  In-Reply-To: <558DDC9B.6090001@BlueTreble.com>
  References: <20150626134310.3876.82768@wrigleys.postgresql.org> <558D58B1.70400@2ndquadrant.it> <558DDC9B.6090001@BlueTreble.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