summaryrefslogtreecommitdiff
path: root/src/include/nodes
diff options
context:
space:
mode:
authorTom Lane1999-10-02 21:33:33 +0000
committerTom Lane1999-10-02 21:33:33 +0000
commit6eb8d255d217c7f0ed2a89e75ae5cb14653c64eb (patch)
treea46783f6fd6caf895f23cfc7275472b0d43715f6 /src/include/nodes
parente23a2b1ea02fbbb121048d5f616c397949ebdca8 (diff)
Allow CREATE FUNCTION's WITH clause to be used for all language types,
not just C, so that ISCACHABLE attribute can be specified for user-defined functions. Get rid of ParamString node type, which wasn't actually being generated by gram.y anymore, even though define.c thought that was what it was getting. Clean up minor bug in dfmgr.c (premature heap_close).
Diffstat (limited to 'src/include/nodes')
-rw-r--r--src/include/nodes/nodes.h4
-rw-r--r--src/include/nodes/parsenodes.h16
2 files changed, 5 insertions, 15 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h
index 68d82473244..08705ea9f6e 100644
--- a/src/include/nodes/nodes.h
+++ b/src/include/nodes/nodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodes.h,v 1.53 1999/09/29 16:06:23 wieck Exp $
+ * $Id: nodes.h,v 1.54 1999/10/02 21:33:33 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -194,7 +194,7 @@ typedef enum NodeTag
T_FuncCall,
T_A_Indices,
T_ResTarget,
- T_ParamString,
+ T_ParamString, /* not used anymore */
T_RelExpr,
T_SortGroupBy,
T_RangeVar,
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index a736c1af67e..463ea1518e0 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.81 1999/09/29 16:06:23 wieck Exp $
+ * $Id: parsenodes.h,v 1.82 1999/10/02 21:33:33 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -346,7 +346,7 @@ typedef struct IndexStmt
char *relname; /* name of relation to index on */
char *accessMethod; /* name of acess methood (eg. btree) */
List *indexParams; /* a list of IndexElem */
- List *withClause; /* a list of ParamString */
+ List *withClause; /* a list of DefElem */
Node *whereClause; /* qualifications */
List *rangetable; /* range table, filled in by
* transformStmt() */
@@ -367,7 +367,7 @@ typedef struct ProcedureStmt
* (as Value *) */
Node *returnType; /* the return type (as a string or a
* TypeName (ie.setof) */
- List *withClause; /* a list of ParamString */
+ List *withClause; /* a list of DefElem */
List *as; /* the SQL statement or filename */
char *language; /* C or SQL */
} ProcedureStmt;
@@ -863,16 +863,6 @@ typedef struct ResTarget
} ResTarget;
/*
- * ParamString - used in WITH clauses
- */
-typedef struct ParamString
-{
- NodeTag type;
- char *name;
- char *val;
-} ParamString;
-
-/*
* RelExpr - relation expressions
*/
typedef struct RelExpr