1996-08-28 03:59:28 +02: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
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1998-02-10 17:04:38 +01:00
|
|
|
* $Id: makefuncs.h,v 1.9 1998/02/10 16:04:24 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
|
|
|
|
1998-01-24 23:50:57 +01:00
|
|
|
extern Oper * makeOper(Oid opno,
|
1997-09-07 07:04:48 +02:00
|
|
|
Oid opid,
|
|
|
|
Oid opresulttype,
|
|
|
|
int opsize,
|
|
|
|
FunctionCachePtr op_fcache);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-01-24 23:50:57 +01:00
|
|
|
extern Var * makeVar(Index varno,
|
1997-09-07 07:04:48 +02:00
|
|
|
AttrNumber varattno,
|
|
|
|
Oid vartype,
|
1998-02-10 17:04:38 +01:00
|
|
|
int16 vartypmod,
|
1998-01-20 23:12:17 +01:00
|
|
|
Index varlevelsup,
|
1997-09-07 07:04:48 +02:00
|
|
|
Index varnoold,
|
|
|
|
AttrNumber varoattno);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-01-24 23:50:57 +01:00
|
|
|
extern Resdom * makeResdom(AttrNumber resno,
|
1997-09-07 07:04:48 +02:00
|
|
|
Oid restype,
|
1998-02-10 17:04:38 +01:00
|
|
|
int16 restypmod,
|
1997-09-07 07:04:48 +02:00
|
|
|
char *resname,
|
|
|
|
Index reskey,
|
|
|
|
Oid reskeyop,
|
|
|
|
int resjunk);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-01-24 23:50:57 +01:00
|
|
|
extern Const * makeConst(Oid consttype,
|
1997-09-07 07:04:48 +02:00
|
|
|
Size constlen,
|
|
|
|
Datum constvalue,
|
|
|
|
bool constisnull,
|
|
|
|
bool constbyval,
|
|
|
|
bool constisset,
|
|
|
|
bool constiscast);
|
|
|
|
|
|
|
|
#endif /* MAKEFUNC_H */
|