postgresql/src/include/nodes/makefuncs.h

51 lines
1.1 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
*
* $Id: makefuncs.h,v 1.20 1999/07/15 23:03:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef MAKEFUNC_H
#define MAKEFUNC_H
#include "nodes/parsenodes.h"
extern Oper *makeOper(Oid opno,
1999-05-25 18:15:34 +02:00
Oid opid,
Oid opresulttype,
int opsize,
FunctionCachePtr op_fcache);
extern Var *makeVar(Index varno,
1999-05-25 18:15:34 +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,
1999-05-25 18:15:34 +02:00
Oid restype,
int32 restypmod,
char *resname,
Index reskey,
Oid reskeyop,
bool resjunk);
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);
#endif /* MAKEFUNC_H */