diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-02-28 22:37:27 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-02-28 22:37:27 +0000 |
commit | 8e68d783902b0b47f377efa4a23a04ddeef272a8 (patch) | |
tree | dfb6af0332b662faad90a752d63224fe1ba60470 /src/include/utils/builtins.h | |
parent | 7f19339cca746753d898651d128ad038b6e1c635 (diff) | |
download | postgresql-8e68d783902b0b47f377efa4a23a04ddeef272a8.tar.gz postgresql-8e68d783902b0b47f377efa4a23a04ddeef272a8.zip |
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.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 28a70d11ce7..50f349abdfd 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.274 2006/02/26 18:36:22 neilc Exp $ + * $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.275 2006/02/28 22:37:27 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -443,6 +443,8 @@ extern Datum opaque_in(PG_FUNCTION_ARGS); extern Datum opaque_out(PG_FUNCTION_ARGS); extern Datum anyelement_in(PG_FUNCTION_ARGS); extern Datum anyelement_out(PG_FUNCTION_ARGS); +extern Datum shell_in(PG_FUNCTION_ARGS); +extern Datum shell_out(PG_FUNCTION_ARGS); /* regexp.c */ extern Datum nameregexeq(PG_FUNCTION_ARGS); |