Re: Small miscellaneous fixes

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Re: Small miscellaneous fixes
Дата
Msg-id CAD21AoAuR2EoGbctZLOzD4Wim3xJRs1KYsQyYofEGmkxcPm0dg@mail.gmail.com
обсуждение исходный текст
Ответ на Small miscellaneous fixes  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: Small miscellaneous fixes  (Ranier Vilela <ranier.vf@gmail.com>)
Список pgsql-hackers
On Fri, Sep 30, 2022 at 9:08 AM Ranier Vilela <ranier.vf@gmail.com> wrote:
>
> 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.

Three changes look good to me.

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

The same is true also for alarm_triggered in pg_test_fsync.c?

Regards,

-- 
Masahiko Sawada
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: "kuroda.hayato@fujitsu.com"
Дата:
Сообщение: RE: [Proposal] Add foreign-server health checks infrastructure
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Improve description of XLOG_RUNNING_XACTS