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: Add a couple of regression test cases related to array subscript
Date: Mon, 07 Dec 2020 16:10:35 +0000
Message-ID: <E1kmJ5v-0000Cr-1F@gemulon.postgresql.org> (raw)

Add a couple of regression test cases related to array subscripting.

Exercise some error cases that were never reached in the existing
regression tests.  This is partly for code-coverage reasons, and
partly to memorialize the current behavior in advance of planned
changes for generic subscripting.

Also, I noticed that type_sanity's check to verify that all standard
types have array types was never extended when we added arrays for
all system catalog rowtypes (f7f70d5e2), nor when we added arrays
over domain types (c12d570fa).  So do that.  Also, since the query's
expected output isn't empty, it seems like a good idea to add an
ORDER BY to make sure the result stays stable.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0a665bbc43c5a678331fb1b1f44274500eba6563

Modified Files
--------------
src/test/regress/expected/arrays.out      | 13 +++++++++++++
src/test/regress/expected/rowtypes.out    |  8 +++++++-
src/test/regress/expected/type_sanity.out | 12 ++++++------
src/test/regress/sql/arrays.sql           |  5 +++++
src/test/regress/sql/rowtypes.sql         |  4 ++++
src/test/regress/sql/type_sanity.sql      | 12 ++++++------
6 files changed, 41 insertions(+), 13 deletions(-)



Message-ID: <E1kmJ5v-0000Cr-1F@gemulon.postgresql.org>
Permalink:  ../E1kmJ5v-0000Cr-1F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kmJ5v-0000Cr-1F@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: Add a couple of regression test cases related to array subscript
  In-Reply-To: <E1kmJ5v-0000Cr-1F@gemulon.postgresql.org>
  References: <E1kmJ5v-0000Cr-1F@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