Dodge a compiler bug affecting timetz_zone/timetz_izone.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 5463319acd19771ac0c986d305f66ea8fb3cc801
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2023-10-20T17:40:15Z
Releases: 15.5
Dodge a compiler bug affecting timetz_zone/timetz_izone.

This avoids a compiler bug occurring in AIX's xlc, even in pretty
late-model revisions.  Buildfarm testing has now confirmed that
only 64-bit xlc is affected.  Although we are contemplating
dropping support for xlc in v17, it's still supported in the
back branches, so we need this fix.

Back-patch of code changes from HEAD commit 19fa97731.
(The test cases were already back-patched, in 4a427b82c et al.)

Discussion: https://postgr.es/m/CA+hUKGK=DOC+hE-62FKfZy=Ybt5uLkrg3zCZD-jFykM-iPn8yw@mail.gmail.com

Files

PathChange+/−
src/backend/utils/adt/date.c modified +6 −4

Discussion