pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid low-probability regression test failures in timestamp[tz]
Date: Sun, 22 Dec 2019 23:00:59 +0000
Message-ID: <E1ijADb-00082V-2T@gemulon.postgresql.org> (raw)

Avoid low-probability regression test failures in timestamp[tz] tests.

If the first transaction block in these tests were entered exactly
at midnight (California time), they'd report a bogus failure due
to 'now' and 'midnight' having the same values.  Commit 8c2ac75c5
had dismissed this as being of negligible probability, but we've
now seen it happen in the buildfarm, so let's prevent it.  We can
get pretty much the same test coverage without an it's-not-midnight
assumption by moving the does-'now'-work cases into their own test step.

While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to
timestamptz as well as timestamp (not sure why that didn't
occur to me at the time; the risk of failure is the same).

Back-patch to all supported branches, since the main point is
to get rid of potential buildfarm failures.

Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e1c056cc4d7bcc0dfe8a3808550e7b7f73b64643

Modified Files
--------------
src/test/regress/expected/timestamp.out   | 37 +++++++++++++---------------
src/test/regress/expected/timestamptz.out | 41 +++++++++++++++++++------------
src/test/regress/sql/timestamp.sql        | 20 +++++++--------
src/test/regress/sql/timestamptz.sql      | 24 +++++++++---------
4 files changed, 63 insertions(+), 59 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1ijADb-00082V-2T@gemulon.postgresql.org>
Permalink:  ../E1ijADb-00082V-2T@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ijADb-00082V-2T@gemulon.postgresql.org

 · 

reply

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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Avoid low-probability regression test failures in timestamp[tz]
  In-Reply-To: <E1ijADb-00082V-2T@gemulon.postgresql.org>
  References: <E1ijADb-00082V-2T@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