Small miscellaneous fixes - Mailing list pgsql-hackers

From Ranier Vilela
Subject Small miscellaneous fixes
Date
Msg-id CAEudQArCDQQiPiFR16=yu9k5s2tp4tgEe1U1ZbkW4ofx81AWWQ@mail.gmail.com
Whole thread Raw
Responses Re: Small miscellaneous fixes
List pgsql-hackers
Hi.

There are assorted fixes to the head branch.

1. Avoid useless reassigning var _logsegno (src/backend/access/transam/xlog.c)
Commit 7d70809 left a little oversight.
XLByteToPrevSeg and XLByteToSeg are macros, and both assign _logsegno.
So, the first assignment is lost and is useless.

2. Avoid retesting log_min_duration (src/backend/commands/analyze.c)
The log_min_duration has already been tested before and the second test
can be safely removed.

3. Avoid useless var declaration record (src/backend/utils/misc/guc.c)
The var record is never really used.

4. Fix declaration volatile signal var (src/bin/pgbench/pgbench.c)
Like how to commit 5ac9e86, this is a similar case.

regards,
Ranier Vilela
Attachment

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: disfavoring unparameterized nested loops
Next
From: Michael Paquier
Date:
Subject: Re: making relfilenodes 56 bits