1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* makefuncs.h--
|
|
|
|
* prototypes for the creator functions (for primitive nodes)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1997-01-22 02:44:02 +01:00
|
|
|
* $Id: makefuncs.h,v 1.3 1997/01/22 01:43:41 momjian Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef MAKEFUNC_H
|
|
|
|
#define MAKEFUNC_H
|
|
|
|
|
1996-11-06 10:21:42 +01:00
|
|
|
#include <nodes/primnodes.h>
|
|
|
|
#include <utils/fcache.h>
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
extern Oper *makeOper(Oid opno,
|
|
|
|
Oid opid,
|
|
|
|
Oid opresulttype,
|
|
|
|
int opsize,
|
|
|
|
FunctionCachePtr op_fcache);
|
|
|
|
|
|
|
|
extern Var *makeVar(Index varno,
|
|
|
|
AttrNumber varattno,
|
|
|
|
Oid vartype,
|
|
|
|
Index varnoold,
|
|
|
|
AttrNumber varoattno);
|
|
|
|
|
|
|
|
extern Resdom *makeResdom(AttrNumber resno,
|
|
|
|
Oid restype,
|
|
|
|
int reslen,
|
|
|
|
char *resname,
|
|
|
|
Index reskey,
|
|
|
|
Oid reskeyop,
|
|
|
|
int resjunk);
|
|
|
|
|
|
|
|
extern Const *makeConst(Oid consttype,
|
|
|
|
Size constlen,
|
|
|
|
Datum constvalue,
|
|
|
|
bool constisnull,
|
|
|
|
bool constbyval,
|
1997-01-22 02:44:02 +01:00
|
|
|
bool constisset,
|
|
|
|
bool constiscast);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
#endif /* MAKEFUNC_H */
|