pgsql: Fix internal extract(timezone_minute) formulas

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix internal extract(timezone_minute) formulas
Дата
Msg-id E1lRy6L-0001yM-Iy@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix internal extract(timezone_minute) formulas

Through various refactorings over time, the extract(timezone_minute
from time with time zone) and extract(timezone_minute from timestamp
with time zone) implementations ended up with two different but
equally nonsensical formulas by using SECS_PER_MINUTE and
MINS_PER_HOUR interchangeably.  Since those two are of course both the
same number, the formulas do work, but for readability, fix them to be
semantically correct.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91e7c903291116bd081abe7d4a058d40a2a06e16

Modified Files
--------------
src/backend/utils/adt/date.c      | 2 +-
src/backend/utils/adt/timestamp.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: libpq_pipeline: Must strdup(optarg) to avoid crash
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix pg_restore's misdesigned code for detecting archive file for