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
|
|
|
*
|
|
|
|
*
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2000-04-12 19:17:23 +02:00
|
|
|
* $Id: makefuncs.h,v 1.24 2000/04/12 17:16:40 momjian Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef MAKEFUNC_H
|
|
|
|
#define MAKEFUNC_H
|
|
|
|
|
1999-07-16 01:04:24 +02:00
|
|
|
#include "nodes/parsenodes.h"
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
extern Oper *makeOper(Oid opno,
|
1999-05-25 18:15:34 +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,
|
1999-05-25 18:15:34 +02:00
|
|
|
AttrNumber varattno,
|
|
|
|
Oid vartype,
|
|
|
|
int32 vartypmod,
|
1999-08-22 22:15:04 +02:00
|
|
|
Index varlevelsup);
|
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,
|
1999-05-25 18:15:34 +02:00
|
|
|
Oid restype,
|
|
|
|
int32 restypmod,
|
|
|
|
char *resname,
|
|
|
|
Index reskey,
|
|
|
|
Oid reskeyop,
|
|
|
|
bool resjunk);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
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);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-02-15 04:38:29 +01:00
|
|
|
extern Attr *
|
2000-04-12 19:17:23 +02:00
|
|
|
makeAttr(char *relname, char *attname);
|
2000-02-15 04:38:29 +01:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* MAKEFUNC_H */
|