git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: ea3e15d) | patch
Fix timestamp range handling in regression tests of modules/commit_ts/
2020年7月13日 01:54:26 +0000 (10:54 +0900)
2020年7月13日 01:54:26 +0000 (10:54 +0900)
commit 5bfe6a3c485d3259f59fa2d2e1d34dea1a3baeba
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
src/test/modules/commit_ts/expected/commit_timestamp.out diff | blob | blame | history
src/test/modules/commit_ts/expected/commit_timestamp_1.out diff | blob | blame | history
src/test/modules/commit_ts/sql/commit_timestamp.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /