pgsql: Cleanup useless assignments and checks

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Cleanup useless assignments and checks
Date: 2022-10-04 04:17:41
Message-ID: E1ofZNE-000oLg-IO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-10-04 06:47:31 pgsql: Fix comment in guc_tables.c
Previous Message Michael Paquier 2022-10-04 01:17:13 pgsql: Add filtering capability for cross-version pg_upgrade tests