1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* fmgrtab.h
|
2001-03-22 05:01:46 +01:00
|
|
|
* The function manager's table of internal functions.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2001-01-24 20:43:33 +01:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2001-10-28 07:26:15 +01:00
|
|
|
* $Id: fmgrtab.h,v 1.18 2001/10/28 06:26:09 momjian Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef FMGRTAB_H
|
|
|
|
#define FMGRTAB_H
|
|
|
|
|
2000-05-28 19:56:29 +02:00
|
|
|
#include "fmgr.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This table stores info about all the built-in functions (ie, functions
|
|
|
|
* that are compiled into the Postgres executable). The table entries are
|
|
|
|
* required to appear in Oid order, so that binary search can be used.
|
|
|
|
*/
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
2000-05-28 19:56:29 +02:00
|
|
|
Oid foid; /* OID of the function */
|
|
|
|
const char *funcName; /* C name of the function */
|
2001-03-22 05:01:46 +01:00
|
|
|
short nargs; /* 0..FUNC_MAX_ARGS, or -1 if variable
|
|
|
|
* count */
|
|
|
|
bool strict; /* T if function is "strict" */
|
2000-11-20 21:36:57 +01:00
|
|
|
bool retset; /* T if function returns a set */
|
2001-03-22 05:01:46 +01:00
|
|
|
PGFunction func; /* pointer to compiled function */
|
2000-05-28 19:56:29 +02:00
|
|
|
} FmgrBuiltin;
|
|
|
|
|
|
|
|
extern const FmgrBuiltin fmgr_builtins[];
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2001-10-28 07:26:15 +01:00
|
|
|
extern const int fmgr_nbuiltins; /* number of entries in table */
|
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* FMGRTAB_H */
|