Re: Question about an inconsistency - 3 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Question about an inconsistency - 3
Date
Msg-id 22184.1468975628@sss.pgh.pa.us
Whole thread Raw
In response to Question about an inconsistency - 3  ("petrum@gmail.com" <petrum@gmail.com>)
List pgsql-hackers
"petrum@gmail.com" <petrum@gmail.com> writes:
> In file postgres/postgresql-9.4.4/src/timezone/zic.c
> function stringzone line 2091we have

> if (stringrule(result, stdrp, dstrp->r_stdoff, zp->z_gmtoff) != 0)

> Is it ok to have as the 3rd argument dstrp->r_stdoff or should we
> have stdrp->r_stdoff? In line 2085 dstrp is used in both arguments.

Doubt it, because if the coding were like that there would be no need
to pass the third argument separately at all; the subroutine could just
access rp->r_stdoff for itself.  But this isn't our code, so if you
want an authoritative answer you should ask athttps://mm.icann.org/mailman/listinfo/tz
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Question about an inconsistency - 2
Next
From: Noah Misch
Date:
Subject: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <