mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Modify fmgr so that internal name (compiler name) of a built-in
function is found in prosrc field of pg_proc, not proname. This allows multiple aliases of a built-in to all be implemented as direct builtins, without needing a level of indirection through an SQL function. Replace existing SQL alias functions with builtin entries accordingly. Save a few K by not storing string names of builtin functions in fmgr's internal table (if you really want 'em, get 'em from pg_proc...). Update opr_sanity with a few more cross-checks.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: fmgrtab.h,v 1.9 1999/02/13 23:22:21 momjian Exp $
|
||||
* $Id: fmgrtab.h,v 1.10 1999/03/29 01:30:41 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -17,13 +17,13 @@
|
||||
typedef struct
|
||||
{
|
||||
Oid proid;
|
||||
uint16 nargs;
|
||||
int nargs;
|
||||
func_ptr func;
|
||||
char *funcName;
|
||||
int dummy; /* pad struct to 4 words for fast indexing */
|
||||
} FmgrCall;
|
||||
|
||||
extern FmgrCall *fmgr_isbuiltin(Oid id);
|
||||
extern func_ptr fmgr_lookupByName(char *name);
|
||||
|
||||
extern void load_file(char *filename);
|
||||
|
||||
#endif /* FMGRTAB_H */
|
||||
|
||||
Reference in New Issue
Block a user