Make UNKNOWN into an actual pseudo-type.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d8d32d9a56a3cecfb14e8f47ebd50b780edffe60
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-01-25T14:27:09Z
Releases: 10.0
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

Files

Documentation touched

Discussion