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: Clean up/tighten up coercibility checks in opr_sanity regression
Date: Sun, 14 Oct 2018 16:11:24 +0000
Message-ID: <E1gBizE-0001Y1-IN@gemulon.postgresql.org> (raw)

Clean up/tighten up coercibility checks in opr_sanity regression test.

With the removal of the old abstime type, there are no longer any cases
in this test where we need to use the weaker castcontext-ignoring form
of binary coercibility check.  (The other major source of such headaches,
apparently-incompatible hash functions, is now hashvalidate()'s problem
not this test script's problem.)  Hence, just use binary_coercible()
everywhere, and remove the comments explaining why we don't do so ---
which were broken anyway by cda6a8d01.

I left physically_coercible() in place but renamed it to better
match what it's actually testing, and added some comments.

Also, in test queries that have an assumption about the maximum number
of function arguments they need to handle, add a clause to make them fail
if someday there's a relevant function with more arguments.  Otherwise
we're likely not to notice that we need to extend the queries.

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

Branch
------
master

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

Modified Files
--------------
src/test/regress/expected/opr_sanity.out | 55 ++++++++++++++++++--------------
src/test/regress/sql/opr_sanity.sql      | 55 ++++++++++++++++++--------------
2 files changed, 62 insertions(+), 48 deletions(-)



Message-ID: <E1gBizE-0001Y1-IN@gemulon.postgresql.org>
Permalink:  ../E1gBizE-0001Y1-IN@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gBizE-0001Y1-IN@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: Clean up/tighten up coercibility checks in opr_sanity regression
  In-Reply-To: <E1gBizE-0001Y1-IN@gemulon.postgresql.org>
  References: <E1gBizE-0001Y1-IN@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