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@postgresql.org
Subject: pgsql: Suppress less info in regression tests using DROP CASCADE.
Date: Tue, 01 Aug 2017 20:49:36 +0000
Message-ID: <E1dce6i-00041J-Ek@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Suppress less info in regression tests using DROP CASCADE.

DROP CASCADE doesn't currently promise to visit dependent objects in
a fixed order, so when the regression tests use it, we typically need
to suppress the details of which objects get dropped in order to have
predictable test output.  Traditionally we've done that by setting
client_min_messages higher than NOTICE, but there's a better way:
we can "\set VERBOSITY terse" in psql.  That suppresses the DETAIL
message with the object list, but we still get the basic notice telling
how many objects were dropped.  So at least the test case can verify
that the expected number of objects were dropped.

The VERBOSITY method was already in use in a few places, but run
around and use it wherever it makes sense.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8e7537261c4b7d296fc10513b93bd67dc3d415b0

Modified Files
--------------
src/test/regress/expected/alter_generic.out  |  6 +++++-
src/test/regress/expected/create_index.out   |  4 ++--
src/test/regress/expected/create_view.out    |  4 +++-
src/test/regress/expected/object_address.out |  4 +++-
src/test/regress/expected/privileges.out     |  9 +++++----
src/test/regress/expected/rowsecurity.out    | 18 +++++++++---------
src/test/regress/expected/rules.out          |  5 +++--
src/test/regress/expected/stats_ext.out      |  6 ++++--
src/test/regress/expected/typed_table.out    |  4 ----
src/test/regress/sql/alter_generic.sql       |  2 +-
src/test/regress/sql/create_index.sql        |  3 +--
src/test/regress/sql/create_view.sql         |  2 +-
src/test/regress/sql/object_address.sql      |  2 +-
src/test/regress/sql/privileges.sql          |  8 ++++----
src/test/regress/sql/rowsecurity.sql         | 16 ++++++----------
src/test/regress/sql/rules.sql               |  4 ++--
src/test/regress/sql/stats_ext.sql           |  4 ++--
src/test/regress/sql/typed_table.sql         |  7 -------
18 files changed, 52 insertions(+), 56 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1dce6i-00041J-Ek@gemulon.postgresql.org>
Permalink:  ../E1dce6i-00041J-Ek@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1dce6i-00041J-Ek@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: Suppress less info in regression tests using DROP CASCADE.
  In-Reply-To: <E1dce6i-00041J-Ek@gemulon.postgresql.org>
  References: <E1dce6i-00041J-Ek@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