From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Make UNKNOWN into an actual pseudo-type.
Date: Wed, 25 Jan 2017 14:27:18 +0000
Message-ID: <E1cWOXe-00018C-7Y@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Make UNKNOWN into an actual pseudo-type.
Previously, type "unknown" was labeled as a base type in pg_type, which
perhaps had some sense to it because you were allowed to create tables with
unknown-type columns. But now that we don't allow that, it makes more
sense to label it a pseudo-type. This has the additional effects of
forbidding use of "unknown" as a domain base type, cast source or target
type, PL function argument or result type, or plpgsql local variable type;
all of which seem like good holes to plug.
Discussion: https://postgr.es/m/CAH2L28uwwbL9HUM-WR=hromW1Cvamkn7O-g8fPY2m=_7muJ0oA@mail.gmail.com
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d8d32d9a56a3cecfb14e8f47ebd50b780edffe60
Modified Files
--------------
doc/src/sgml/datatype.sgml | 13 ++++++++++++-
doc/src/sgml/ddl.sgml | 2 +-
doc/src/sgml/plhandler.sgml | 2 +-
doc/src/sgml/protocol.sgml | 2 +-
doc/src/sgml/queries.sgml | 2 +-
doc/src/sgml/ref/create_function.sgml | 6 +++---
doc/src/sgml/ref/create_type.sgml | 2 +-
src/backend/catalog/heap.c | 3 +--
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_type.h | 2 +-
src/test/regress/expected/type_sanity.out | 5 ++---
src/test/regress/sql/type_sanity.sql | 2 +-
12 files changed, 26 insertions(+), 17 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: Make UNKNOWN into an actual pseudo-type.
In-Reply-To: <E1cWOXe-00018C-7Y@gemulon.postgresql.org>
References: <E1cWOXe-00018C-7Y@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