Add macros to check if a filename is a WAL segment or other such file.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +3 −8 |
| src/backend/replication/basebackup.c | modified | +2 −5 |
| src/bin/pg_basebackup/pg_receivexlog.c | modified | +2 −14 |
| src/bin/pg_resetxlog/pg_resetxlog.c | modified | +6 −2 |
| src/include/access/xlog_internal.h | modified | +18 −0 |