patch: change magic constants to DEFINE value for readability.

Поиск
Список
Период
Сортировка
От CharSyam
Тема patch: change magic constants to DEFINE value for readability.
Дата
Msg-id CAMrLSE5j_aWfoBDMrSvk14oBKSy+-2cjzNNH_FciirA7Kwo9TA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] patch: change magic constants to DEFINE value for readability.  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
in src/backend/utils/misc/tzparser.c

It uses 60 * 60 to represent SECS_PER_HOUR.

and It is already define in other files.

so I think using SECS_PER_HOUR is more clear for readability.

and I attached patch.(it just change 60 * 60 to SECS_PER_HOUR)

What do you think?
Вложения

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

Предыдущее
От: Eric Ridge
Дата:
Сообщение: Re: Change pg_cancel_*() to ignore current backend
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Issues in Replication Progress Tracking