pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix internal extract(timezone_minute) formulas
Date: Thu, 01 Apr 2021 14:15:13 +0000
Message-ID: <E1lRy6L-0001yM-Iy@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1lRy6L-0001yM-Iy@gemulon.postgresql.org>
Permalink:  ../E1lRy6L-0001yM-Iy@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lRy6L-0001yM-Iy@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Fix internal extract(timezone_minute) formulas
  In-Reply-To: <E1lRy6L-0001yM-Iy@gemulon.postgresql.org>
  References: <E1lRy6L-0001yM-Iy@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox