-
- Downloads
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
Showing
- doc/src/sgml/datatype.sgml 12 additions, 1 deletiondoc/src/sgml/datatype.sgml
- doc/src/sgml/ddl.sgml 1 addition, 1 deletiondoc/src/sgml/ddl.sgml
- doc/src/sgml/plhandler.sgml 1 addition, 1 deletiondoc/src/sgml/plhandler.sgml
- doc/src/sgml/protocol.sgml 1 addition, 1 deletiondoc/src/sgml/protocol.sgml
- doc/src/sgml/queries.sgml 1 addition, 1 deletiondoc/src/sgml/queries.sgml
- doc/src/sgml/ref/create_function.sgml 3 additions, 3 deletionsdoc/src/sgml/ref/create_function.sgml
- doc/src/sgml/ref/create_type.sgml 1 addition, 1 deletiondoc/src/sgml/ref/create_type.sgml
- src/backend/catalog/heap.c 1 addition, 2 deletionssrc/backend/catalog/heap.c
- src/include/catalog/catversion.h 1 addition, 1 deletionsrc/include/catalog/catversion.h
- src/include/catalog/pg_type.h 1 addition, 1 deletionsrc/include/catalog/pg_type.h
- src/test/regress/expected/type_sanity.out 2 additions, 3 deletionssrc/test/regress/expected/type_sanity.out
- src/test/regress/sql/type_sanity.sql 1 addition, 1 deletionsrc/test/regress/sql/type_sanity.sql
Loading
Please register or sign in to comment