From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix timestamp range handling in regression tests of modules/comm
Date: Mon, 13 Jul 2020 01:57:13 +0000
Message-ID: <E1juniT-0002HW-P1@gemulon.postgresql.org> (raw)
Fix timestamp range handling in regression tests of modules/commit_ts/
Switching the regression tests to use tstzrange() has proved to not be a
good idea for environments where the timestamp precision is low, as
internal range checks exclude the upper bound. So, if the commit
timestamp of a transaction matched with now() from the next query,
the test would fail. This changes to use two bound checks instead of
the range function, where the upper bound is inclusive.
Per buildfarm member jacana.
Discussion: https://postgr.es/m/20200712122507.GD21680@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5bfe6a3c485d3259f59fa2d2e1d34dea1a3baeba
Modified Files
--------------
.../commit_ts/expected/commit_timestamp.out | 49 ++++++++++++----------
.../commit_ts/expected/commit_timestamp_1.out | 19 ++++++---
.../modules/commit_ts/sql/commit_timestamp.sql | 19 ++++++---
3 files changed, 54 insertions(+), 33 deletions(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Fix timestamp range handling in regression tests of modules/comm
In-Reply-To: <E1juniT-0002HW-P1@gemulon.postgresql.org>
References: <E1juniT-0002HW-P1@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