diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-01 00:04:39 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-01 00:04:39 +0000 |
| commit | d6d07a0eeabc8dfa6f8803193c2896d3e2e53a3c (patch) | |
| tree | 72c5bf24d290111ad02b96f470055f9498689a5f /src/include | |
| parent | 71e9f3b07f2f993492233dc2fff0566acc70eb64 (diff) | |
| download | postgresql-d6d07a0eeabc8dfa6f8803193c2896d3e2e53a3c.tar.gz | |
SQL functions can have arguments and results declared ANYARRAY or
ANYELEMENT. The effect is to postpone typechecking of the function
body until runtime. Documentation is still lacking.
Original patch by Joe Conway, modified to postpone type checking
by Tom Lane.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/pg_proc.h | 5 | ||||
| -rw-r--r-- | src/include/fmgr.h | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 578a6b7d42..b1f16c2d42 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pg_proc.h,v 1.308 2003/06/27 00:33:25 tgl Exp $ + * $Id: pg_proc.h,v 1.309 2003/07/01 00:04:38 tgl Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -3438,4 +3438,7 @@ extern Oid ProcedureCreate(const char *procedureName, int parameterCount, const Oid *parameterTypes); +extern void check_sql_fn_retval(Oid rettype, char fn_typtype, + List *queryTreeList); + #endif /* PG_PROC_H */ diff --git a/src/include/fmgr.h b/src/include/fmgr.h index 51844eac38..1cc6ed023e 100644 --- a/src/include/fmgr.h +++ b/src/include/fmgr.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: fmgr.h,v 1.29 2003/06/25 21:30:32 momjian Exp $ + * $Id: fmgr.h,v 1.30 2003/07/01 00:04:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -378,8 +378,8 @@ extern Datum OidFunctionCall9(Oid functionId, Datum arg1, Datum arg2, */ extern Pg_finfo_record *fetch_finfo_record(void *filehandle, char *funcname); extern Oid fmgr_internal_function(const char *proname); -extern Oid get_fn_expr_rettype(FunctionCallInfo fcinfo); -extern Oid get_fn_expr_argtype(FunctionCallInfo fcinfo, int argnum); +extern Oid get_fn_expr_rettype(FmgrInfo *flinfo); +extern Oid get_fn_expr_argtype(FmgrInfo *flinfo, int argnum); /* * Routines in dfmgr.c |
