pgsql: Add macros to check if a filename is a WAL segment or other such

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Add macros to check if a filename is a WAL segment or other such
Дата
Msg-id E1Yqncc-0001lJ-Sn@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: At promotion, archive last segment from old timeline with .parti
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Fix two problems in infer_arbiter_indexes().