From: Peter Eisentraut <peter_e@gmx.net>
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: At promotion, archive last segment from old timeline with .parti
Date: Fri, 22 May 2015 12:05:36 -0400
Message-ID: <555F53D0.7050506@gmx.net> (raw)
In-Reply-To: <E1Yqncc-0001lK-Ss@gemulon.postgresql.org>
References: <E1Yqncc-0001lK-Ss@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 5/8/15 3:07 PM, Heikki Linnakangas wrote:
> At promotion, archive last segment from old timeline with .partial suffix.
There appears to be a mixup here:
+ char origpath[MAXPGPATH];
+ char partialfname[MAXFNAMELEN];
+ char partialpath[MAXPGPATH];
+
+ XLogFilePath(origpath, EndOfLogTLI, endLogSegNo);
+ snprintf(partialfname, MAXPGPATH, "%s.partial", origfname);
+ snprintf(partialpath, MAXPGPATH, "%s.partial", origpath);
Some compilers are complaining that the snprintf(partialfname, ...)
could overflow.
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: peter_e@gmx.net, heikki.linnakangas@iki.fi
Subject: Re: pgsql: At promotion, archive last segment from old timeline with .parti
In-Reply-To: <555F53D0.7050506@gmx.net>
References: <E1Yqncc-0001lK-Ss@gemulon.postgresql.org> <555F53D0.7050506@gmx.net>
* 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