postgresql/src/include/nodes/makefuncs.h

53 lines
1.2 KiB
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* makefuncs.h--
* prototypes for the creator functions (for primitive nodes)
*
*
* Copyright (c) 1994, Regents of the University of California
*
1998-10-02 00:51:22 +02:00
* $Id: makefuncs.h,v 1.15 1998/10/01 22:51:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef MAKEFUNC_H
#define MAKEFUNC_H
1996-11-06 10:21:42 +01:00
#include <nodes/primnodes.h>
1998-07-20 22:48:54 +02:00
#include <nodes/parsenodes.h>
1996-11-06 10:21:42 +01:00
#include <utils/fcache.h>
extern Oper *makeOper(Oid opno,
1998-10-02 00:51:22 +02:00
Oid opid,
Oid opresulttype,
int opsize,
FunctionCachePtr op_fcache);
extern Var *makeVar(Index varno,
1998-10-02 00:51:22 +02:00
AttrNumber varattno,
Oid vartype,
int32 vartypmod,
Index varlevelsup,
Index varnoold,
AttrNumber varoattno);
1998-10-02 00:51:22 +02:00
extern TargetEntry *makeTargetEntry(Resdom *resdom, Node *expr);
1998-07-20 22:48:54 +02:00
extern Resdom *makeResdom(AttrNumber resno,
1998-10-02 00:51:22 +02:00
Oid restype,
int32 restypmod,
char *resname,
Index reskey,
Oid reskeyop,
int resjunk);
extern Const *makeConst(Oid consttype,
1998-10-02 00:51:22 +02:00
int constlen,
Datum constvalue,
bool constisnull,
bool constbyval,
bool constisset,
bool constiscast);
#endif /* MAKEFUNC_H */