|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.9 1997/09/18 20:20:18 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.10 1997/11/25 21:58:48 momjian Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
14 | 14 | #include<postgres.h> |
15 | 15 |
|
| 16 | +#include<fmgr.h> |
| 17 | +#include<miscadmin.h> |
16 | 18 | #include<utils/syscache.h> |
17 | 19 | #include<catalog/pg_proc.h> |
18 | 20 | #include<access/heapam.h> |
19 | 21 | #include<access/relscan.h> |
20 | | -#include<fmgr.h> |
21 | | -#include<utils/builtins.h> |
22 | | -#include<utils/sets.h> |
23 | 22 | #include<catalog/catname.h> |
24 | 23 | #include<catalog/indexing.h> |
25 | | -#include<parser/parse_query.h> |
| 24 | +#include<catalog/pg_type.h> |
| 25 | +#include<parser/parse_node.h> |
26 | 26 | #include<tcop/tcopprot.h> |
27 | | -#include<parser/catalog_utils.h> |
| 27 | +#include<utils/builtins.h> |
| 28 | +#include<utils/sets.h> |
| 29 | +#include<utils/lsyscache.h> |
28 | 30 | #include<optimizer/internal.h> |
29 | 31 | #include<optimizer/planner.h> |
30 | | -#include<utils/lsyscache.h> |
31 | | -#include<miscadmin.h> |
32 | 32 | #ifndefHAVE_MEMMOVE |
33 | 33 | #include<regex/utils.h> |
34 | 34 | #else |
@@ -200,7 +200,7 @@ ProcedureCreate(char *procedureName, |
200 | 200 | if (parameterCount==1&& |
201 | 201 | (toid=TypeGet(strVal(lfirst(argList)),&defined))&& |
202 | 202 | defined&& |
203 | | -(relid=typeid_get_relid(toid))!=0&& |
| 203 | +(relid=typeidTypeRelid(toid))!=0&& |
204 | 204 | get_attnum(relid,procedureName)!=InvalidAttrNumber) |
205 | 205 | elog(WARN,"method %s already an attribute of type %s", |
206 | 206 | procedureName,strVal(lfirst(argList))); |
|