From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add macros to check if a filename is a WAL segment or other such
Date: Fri, 08 May 2015 19:07:42 +0000
Message-ID: <E1Yqncc-0001lJ-Sn@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add macros to check if a filename is a WAL segment or other such file.
We had many instances of the strlen + strspn combination to check for that.
This makes the code a bit easier to read.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/179cdd098196338880bdbb39c39a788abdad4dd8
Modified Files
--------------
src/backend/access/transam/xlog.c | 11 +++--------
src/backend/replication/basebackup.c | 7 ++-----
src/bin/pg_basebackup/pg_receivexlog.c | 16 ++--------------
src/bin/pg_resetxlog/pg_resetxlog.c | 8 ++++++--
src/include/access/xlog_internal.h | 18 ++++++++++++++++++
5 files changed, 31 insertions(+), 29 deletions(-)
--
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: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Add macros to check if a filename is a WAL segment or other such
In-Reply-To: <E1Yqncc-0001lJ-Sn@gemulon.postgresql.org>
References: <E1Yqncc-0001lJ-Sn@gemulon.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