pgsql: Cleanup useless assignments and checks

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Cleanup useless assignments and checks
Дата
Msg-id E1ofZNE-000oLg-IO@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Cleanup useless assignments and checks

This cleans up a couple of areas:
- Remove XLogSegNo calculation for the last WAL segment in backup in
xlog.c (7d70809 has moved this logic entirely to xlogbackup.c when
building the contents of the backup history file).
- Remove check on log_min_duration in analyze.c, as it is already true
where this code path is reached.
- Simplify call to find_option() in guc.c.

Author: Ranier Vilela
Reviewed-by: Masahiko Sawada
Discussion: https://postgr.es/m/CAEudQArCDQQiPiFR16=yu9k5s2tp4tgEe1U1ZbkW4ofx81AWWQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c42cd05c586235fa9e84fb4a3682286cf551df0e

Modified Files
--------------
src/backend/access/transam/xlog.c | 1 -
src/backend/commands/analyze.c    | 3 +--
src/backend/utils/misc/guc.c      | 4 +---
3 files changed, 2 insertions(+), 6 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Add filtering capability for cross-version pg_upgrade tests
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix comment in guc_tables.c