pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: rekgrpth@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18248: Expression is always zero
Date: Thu, 14 Dec 2023 09:40:48 -0500
Message-ID: <2780888.1702564848@sss.pgh.pa.us> (raw)
In-Reply-To: <ZXrirGsvtY3PnlfB@jrouhaud>
References: <18248-4250c882e2a8b8f6@postgresql.org>
	<ZXrirGsvtY3PnlfB@jrouhaud>

Julien Rouhaud <rjuju123@gmail.com> writes:
> On Thu, Dec 14, 2023 at 05:32:49AM +0000, PG Bug reporting form wrote:
>> The value of expression 'thistimecnt >> 31 >> 31 >> 2' (in
>> src/timezone/zic.c) is zero regardless of the value of the left operand

> Note that this is code imported as-is from upstream IANA tzcode, so we wouldn't
> make any change ourself.
> Looking at their git history they added it to remove some theoretical int
> limits:
> https://github.com/eggert/tz/commit/cc8aec6ecb1ecc3099f173e2bca9785ae8359c03

Yeah, the tzcode crew have a wider range of (possibly theoretical)
target systems in mind than we do.  They probably won't think this
is a bug, and we're unlikely to diverge from whatever they do.

			regards, tom lane





view thread (5+ messages)

Message-ID: <2780888.1702564848@sss.pgh.pa.us>
Permalink:  ../2780888.1702564848@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2780888.1702564848@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rjuju123@gmail.com, rekgrpth@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18248: Expression is always zero
  In-Reply-To: <2780888.1702564848@sss.pgh.pa.us>

* 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