postgresql/src/test/regress
Tom Lane 19fa977311 Dodge a compiler bug affecting timetz_zone/timetz_izone.
Use a modulo operator instead of implementing the same behavior
with a loop.  The loop solution is doubtless microscopically
faster for the typical case of only wrapping into the very next
day, but maybe not so much for large interval values.  In any
case, timetz is such a backwater that it's doubtful anybody
would notice any performance change anyway.

This avoids a compiler bug occurring in AIX's xlc, even in pretty
late-model revisions.

We did not have test coverage for the case where the initial
result->time value is negative, so add that.

For the moment, install this only in HEAD.  My plan is to
back-patch the test case, and then the code change assuming that
buildfarm testing proves the bug occurs in the back branches.
(That seems pretty likely, but let's find out for sure.)

Per buildfarm results from commits 97957fdba and 2f0472030.
Thanks to Michael Paquier for the idea to use a modulo operation
to replace the faulty loop.

Discussion: https://postgr.es/m/CA+hUKGK=DOC+hE-62FKfZy=Ybt5uLkrg3zCZD-jFykM-iPn8yw@mail.gmail.com
2023-10-17 13:10:35 -04:00
..
data Fix full text search to handle NOT above a phrase search correctly. 2020-04-27 12:21:04 -04:00
expected Dodge a compiler bug affecting timetz_zone/timetz_izone. 2023-10-17 13:10:35 -04:00
sql Dodge a compiler bug affecting timetz_zone/timetz_izone. 2023-10-17 13:10:35 -04:00
.gitignore
GNUmakefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile
meson.build meson: Prevent installation of test files during main install 2023-03-03 07:45:52 +01:00
parallel_schedule parallel_schedule: add comment on event_trigger test dependency 2023-07-12 18:46:27 +02:00
pg_regress_main.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_regress.c Tidy-up some appendStringInfo*() usages 2023-10-03 17:09:52 +13:00
pg_regress.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
README
regress.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
regressplans.sh
resultmap Remove HP-UX port. 2022-07-08 14:05:05 +12:00

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".