pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8453: uninitialized memory access in pg_receivexlog and other bugs
Date: Mon, 16 Sep 2013 20:59:23 +0100
Message-ID: <87txhk5yya.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <52375F67.3040503@vmware.com>
References: <E1VLB2N-0003XN-7k@wrigleys.postgresql.org>
	<52375F67.3040503@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

>>>>> "Heikki" == Heikki Linnakangas <hlinnakangas@vmware.com> writes:

 >> Also, receivexlog is ignoring .partial and .history files when
 >> determining which timeline to start streaming from, which means
 >> that if there are two timeline changes that are not separated by a
 >> WAL segment switch, it will fail to operate due to attempting to
 >> start from a too-old timeline (for which xlogs are not available
 >> on the server).

 Heikki> There's nothing we can do with .history files here. The point
 Heikki> is to find out how far we have already received WAL, and the
 Heikki> presence of a .history file doesn't tell you anything about
 Heikki> that.

I was thinking that the presence of a history file might at least be
useful for setting a bound on what TLI we're going to use; but if a
possible .partial file is taken into account the issue should be moot
anyway I guess.

 Heikki> Attached is a patch to fix both of these issues. I'm too
 Heikki> tired right now to thoroughly test it and commit, so I'll get
 Heikki> back to this tomorrow. Meanwhile, please take a look and let
 Heikki> me know if you can see something wrong.

A quick eyeball check looks ok; I'll see about reproducing the
original scenario with this patch applied.

-- 
Andrew (irc:RhodiumToad)


-- 
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 (4+ messages)  latest in thread

Message-ID: <87txhk5yya.fsf@news-spur.riddles.org.uk>
Permalink:  ../87txhk5yya.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87txhk5yya.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, hlinnakangas@vmware.com
  Subject: Re: BUG #8453: uninitialized memory access in pg_receivexlog and other bugs
  In-Reply-To: <87txhk5yya.fsf@news-spur.riddles.org.uk>
  References: <E1VLB2N-0003XN-7k@wrigleys.postgresql.org> <52375F67.3040503@vmware.com> <87txhk5yya.fsf@news-spur.riddles.org.uk>

* 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