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: In opr_sanity regression test, check for unexpected uses of cstr
Date: Tue, 05 Jan 2016 20:01:11 +0000
Message-ID: <E1aGXn5-0004Hp-DK@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

In opr_sanity regression test, check for unexpected uses of cstring.

In light of commit ea0d494dae0d3d6f, it seems like a good idea to add
a regression test that will complain about random functions taking or
returning cstring.  Only I/O support functions and encoding conversion
functions should be declared that way.

While at it, add some checks that encoding conversion functions are
declared properly.  Since pg_conversion isn't populated manually,
it's not quite as necessary to check its contents as it is for catalogs
like pg_proc; but one thing we definitely have not tested in the past
is whether the identified conproc for a conversion actually does that
conversion vs. some other one.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/921191912c48a68db81c02c02f3bc22e291d918c

Modified Files
--------------
src/test/regress/expected/opr_sanity.out |   84 +++++++++++++++++++++++++++++-
src/test/regress/sql/opr_sanity.sql      |   73 +++++++++++++++++++++++++-
2 files changed, 155 insertions(+), 2 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: <E1aGXn5-0004Hp-DK@gemulon.postgresql.org>
Permalink:  ../E1aGXn5-0004Hp-DK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aGXn5-0004Hp-DK@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: In opr_sanity regression test, check for unexpected uses of cstr
  In-Reply-To: <E1aGXn5-0004Hp-DK@gemulon.postgresql.org>
  References: <E1aGXn5-0004Hp-DK@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