1996-08-27 21:59:28 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-13 18:22:53 -05:00
|
|
|
* makefuncs.h
|
1997-09-07 01:04:48 -04:00
|
|
|
* prototypes for the creator functions (for primitive nodes)
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
|
|
|
|
*
|
2002-06-20 16:29:54 -04:00
|
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
2002-09-04 16:31:48 -04:00
|
|
|
* $Id: makefuncs.h,v 1.40 2002/09/04 20:31:43 momjian Exp $
|
1996-08-27 21:59:28 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef MAKEFUNC_H
|
|
|
|
|
#define MAKEFUNC_H
|
|
|
|
|
|
1999-07-15 19:04:24 -04:00
|
|
|
#include "nodes/parsenodes.h"
|
1996-08-27 21:59:28 -04:00
|
|
|
|
2002-04-16 19:08:12 -04:00
|
|
|
extern A_Expr *makeA_Expr(int oper, List *name, Node *lexpr, Node *rexpr);
|
|
|
|
|
|
|
|
|
|
extern A_Expr *makeSimpleA_Expr(int oper, const char *name,
|
2002-09-04 16:31:48 -04:00
|
|
|
Node *lexpr, Node *rexpr);
|
2002-04-16 19:08:12 -04:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
extern Oper *makeOper(Oid opno,
|
2002-09-04 16:31:48 -04:00
|
|
|
Oid opid,
|
|
|
|
|
Oid opresulttype,
|
|
|
|
|
bool opretset);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
extern Var *makeVar(Index varno,
|
1999-05-25 12:15:34 -04:00
|
|
|
AttrNumber varattno,
|
|
|
|
|
Oid vartype,
|
|
|
|
|
int32 vartypmod,
|
1999-08-22 16:15:04 -04:00
|
|
|
Index varlevelsup);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1998-10-01 18:51:22 -04:00
|
|
|
extern TargetEntry *makeTargetEntry(Resdom *resdom, Node *expr);
|
1998-07-20 16:48:54 -04:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
extern Resdom *makeResdom(AttrNumber resno,
|
1999-05-25 12:15:34 -04:00
|
|
|
Oid restype,
|
|
|
|
|
int32 restypmod,
|
|
|
|
|
char *resname,
|
|
|
|
|
bool resjunk);
|
1996-08-27 21:59:28 -04:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
extern Const *makeConst(Oid consttype,
|
1999-05-25 12:15:34 -04:00
|
|
|
int constlen,
|
|
|
|
|
Datum constvalue,
|
|
|
|
|
bool constisnull,
|
|
|
|
|
bool constbyval,
|
|
|
|
|
bool constisset,
|
|
|
|
|
bool constiscast);
|
1997-09-07 01:04:48 -04:00
|
|
|
|
2000-11-16 17:30:52 -05:00
|
|
|
extern Const *makeNullConst(Oid consttype);
|
|
|
|
|
|
2002-03-21 11:02:16 -05:00
|
|
|
extern Alias *makeAlias(const char *aliasname, List *colnames);
|
2001-10-28 01:26:15 -05:00
|
|
|
|
2002-03-20 14:45:13 -05:00
|
|
|
extern RelabelType *makeRelabelType(Node *arg, Oid rtype, int32 rtypmod);
|
|
|
|
|
|
2002-03-21 21:56:37 -05:00
|
|
|
extern RangeVar *makeRangeVar(char *schemaname, char *relname);
|
|
|
|
|
|
2002-03-29 14:06:29 -05:00
|
|
|
extern TypeName *makeTypeName(char *typnam);
|
|
|
|
|
|
2001-11-05 12:46:40 -05:00
|
|
|
#endif /* MAKEFUNC_H */
|