Improve the naming in wal_sync_method code.
[pgsql.git] / src / include / utils / fmgrtab.h
blob838ffe3bc1c2d2c22b3dc4fffc6f733819ed76dc
1 /*-------------------------------------------------------------------------
3 * fmgrtab.h
4 * The function manager's table of internal functions.
6 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/utils/fmgrtab.h
11 *-------------------------------------------------------------------------
13 #ifndef FMGRTAB_H
14 #define FMGRTAB_H
16 #include "access/transam.h"
17 #include "fmgr.h"
21 * This table stores info about all the built-in functions (ie, functions
22 * that are compiled into the Postgres executable).
25 typedef struct
27 Oid foid; /* OID of the function */
28 short nargs; /* 0..FUNC_MAX_ARGS, or -1 if variable count */
29 bool strict; /* T if function is "strict" */
30 bool retset; /* T if function returns a set */
31 const char *funcName; /* C name of the function */
32 PGFunction func; /* pointer to compiled function */
33 } FmgrBuiltin;
35 extern PGDLLIMPORT const FmgrBuiltin fmgr_builtins[];
37 extern PGDLLIMPORT const int fmgr_nbuiltins; /* number of entries in table */
39 extern PGDLLIMPORT const Oid fmgr_last_builtin_oid; /* highest function OID in
40 * table */
43 * Mapping from a builtin function's OID to its index in the fmgr_builtins
44 * array. This is indexed from 0 through fmgr_last_builtin_oid.
46 #define InvalidOidBuiltinMapping PG_UINT16_MAX
47 extern PGDLLIMPORT const uint16 fmgr_builtin_oid_index[];
49 #endif /* FMGRTAB_H */