]> granicus.if.org Git - postgresql/commit
Add macros to check if a filename is a WAL segment or other such file.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 8 May 2015 18:58:57 +0000 (21:58 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 8 May 2015 18:58:57 +0000 (21:58 +0300)
commit179cdd098196338880bdbb39c39a788abdad4dd8
treeba94b277b326f1599d2835f0fe50b791016dd532
parent16c73e773bc5f2eee6a71c5ec311b8691bf9e832
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.
src/backend/access/transam/xlog.c
src/backend/replication/basebackup.c
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/include/access/xlog_internal.h