1996-08-28 01:59:28 +00:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-13 23:22:53 +00:00
|
|
|
* makefuncs.h
|
1997-09-07 05:04:48 +00:00
|
|
|
* prototypes for the creator functions (for primitive nodes)
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
|
|
|
*
|
2000-01-26 05:58:53 +00:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
2000-11-16 22:30:52 +00:00
|
|
|
* $Id: makefuncs.h,v 1.26 2000/11/16 22:30:45 tgl Exp $
|
1996-08-28 01:59:28 +00:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef MAKEFUNC_H
|
|
|
|
#define MAKEFUNC_H
|
|
|
|
|
1999-07-15 23:04:24 +00:00
|
|
|
#include "nodes/parsenodes.h"
|
1996-08-28 01:59:28 +00:00
|
|
|
|
1998-09-01 04:40:42 +00:00
|
|
|
extern Oper *makeOper(Oid opno,
|
1999-05-25 16:15:34 +00:00
|
|
|
Oid opid,
|
2000-08-08 15:43:12 +00:00
|
|
|
Oid opresulttype);
|
1996-08-28 01:59:28 +00:00
|
|
|
|
1998-09-01 04:40:42 +00:00
|
|
|
extern Var *makeVar(Index varno,
|
1999-05-25 16:15:34 +00:00
|
|
|
AttrNumber varattno,
|
|
|
|
Oid vartype,
|
|
|
|
int32 vartypmod,
|
1999-08-22 20:15:04 +00:00
|
|
|
Index varlevelsup);
|
1996-08-28 01:59:28 +00:00
|
|
|
|
1998-10-01 22:51:22 +00:00
|
|
|
extern TargetEntry *makeTargetEntry(Resdom *resdom, Node *expr);
|
1998-07-20 20:48:54 +00:00
|
|
|
|
1998-09-01 04:40:42 +00:00
|
|
|
extern Resdom *makeResdom(AttrNumber resno,
|
1999-05-25 16:15:34 +00:00
|
|
|
Oid restype,
|
|
|
|
int32 restypmod,
|
|
|
|
char *resname,
|
|
|
|
bool resjunk);
|
1996-08-28 01:59:28 +00:00
|
|
|
|
1998-09-01 04:40:42 +00:00
|
|
|
extern Const *makeConst(Oid consttype,
|
1999-05-25 16:15:34 +00:00
|
|
|
int constlen,
|
|
|
|
Datum constvalue,
|
|
|
|
bool constisnull,
|
|
|
|
bool constbyval,
|
|
|
|
bool constisset,
|
|
|
|
bool constiscast);
|
1997-09-07 05:04:48 +00:00
|
|
|
|
2000-11-16 22:30:52 +00:00
|
|
|
extern Const *makeNullConst(Oid consttype);
|
|
|
|
|
|
|
|
extern Attr *makeAttr(char *relname, char *attname);
|
2000-02-15 03:38:29 +00:00
|
|
|
|
1998-09-01 04:40:42 +00:00
|
|
|
#endif /* MAKEFUNC_H */
|