diff options
author | Tom Lane | 1999-03-29 01:30:45 +0000 |
---|---|---|
committer | Tom Lane | 1999-03-29 01:30:45 +0000 |
commit | c537d4295a1c2fe30ea4782a91da24ec9ce743e0 (patch) | |
tree | 041a549410dcfdaa126b3282da8f0adbd74412f7 /src/include/utils/fmgrtab.h | |
parent | fdf6be80f993d2908f794c0a33aedff479a92813 (diff) |
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.
Diffstat (limited to 'src/include/utils/fmgrtab.h')
-rw-r--r-- | src/include/utils/fmgrtab.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/utils/fmgrtab.h b/src/include/utils/fmgrtab.h index b5c35f805a5..edee95aa8eb 100644 --- a/src/include/utils/fmgrtab.h +++ b/src/include/utils/fmgrtab.h @@ -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 */ |