diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-02 21:33:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-02 21:33:33 +0000 |
commit | 6eb8d255d217c7f0ed2a89e75ae5cb14653c64eb (patch) | |
tree | a46783f6fd6caf895f23cfc7275472b0d43715f6 /src/include/nodes/parsenodes.h | |
parent | e23a2b1ea02fbbb121048d5f616c397949ebdca8 (diff) | |
download | postgresql-6eb8d255d217c7f0ed2a89e75ae5cb14653c64eb.tar.gz postgresql-6eb8d255d217c7f0ed2a89e75ae5cb14653c64eb.zip |
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/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 16 |
1 files changed, 3 insertions, 13 deletions
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 |