Cleanup useless assignments and checks
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +0 −1 |
| src/backend/commands/analyze.c | modified | +1 −2 |
| src/backend/utils/misc/guc.c | modified | +1 −3 |
Discussion
- Small miscellaneous fixes 11 messages · 2022-09-30 → 2022-11-27