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
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1999-05-17 19:03:51 +02:00
|
|
|
* $Id: makefuncs.h,v 1.17 1999/05/17 17:03:42 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>
|
1998-07-20 22:48:54 +02:00
|
|
|
#include <nodes/parsenodes.h>
|
1996-11-06 10:21:42 +01:00
|
|
|
#include <utils/fcache.h>
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
extern Oper *makeOper(Oid opno,
|
1998-10-02 00:51:22 +02:00
|
|
|
Oid opid,
|
|
|
|
Oid opresulttype,
|
|
|
|
int opsize,
|
|
|
|
FunctionCachePtr op_fcache);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
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);
|
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,
|
1998-10-02 00:51:22 +02:00
|
|
|
Oid restype,
|
|
|
|
int32 restypmod,
|
|
|
|
char *resname,
|
|
|
|
Index reskey,
|
|
|
|
Oid reskeyop,
|
1999-05-17 19:03:51 +02:00
|
|
|
bool resjunk);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
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);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* MAKEFUNC_H */
|