OSDN Git Service

Allow the syntax CREATE TYPE foo, with no parameters, to permit explicit
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 28 Feb 2006 22:37:27 +0000 (22:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 28 Feb 2006 22:37:27 +0000 (22:37 +0000)
commit8e68d783902b0b47f377efa4a23a04ddeef272a8
treedfb6af0332b662faad90a752d63224fe1ba60470
parent7f19339cca746753d898651d128ad038b6e1c635
Allow the syntax CREATE TYPE foo, with no parameters, to permit explicit
creation of a shell type.  This allows a less hacky way of dealing with
the mutual dependency between a datatype and its I/O functions: make a
shell type, then make the functions, then define the datatype fully.
We should fix pg_dump to handle things this way, but this commit just deals
with the backend.

Martijn van Oosterhout, with some corrections by Tom Lane.
12 files changed:
doc/src/sgml/ref/create_type.sgml
doc/src/sgml/xtypes.sgml
src/backend/catalog/pg_type.c
src/backend/commands/typecmds.c
src/backend/parser/gram.y
src/backend/utils/adt/pseudotypes.c
src/include/catalog/catversion.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/test/regress/expected/create_type.out
src/test/regress/sql/create_type.sql