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