OSDN Git Service

Modify fmgr so that internal name (compiler name) of a built-in
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Mar 1999 01:30:45 +0000 (01:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Mar 1999 01:30:45 +0000 (01:30 +0000)
commitc537d4295a1c2fe30ea4782a91da24ec9ce743e0
tree041a549410dcfdaa126b3282da8f0adbd74412f7
parentfdf6be80f993d2908f794c0a33aedff479a92813
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.
src/backend/utils/Gen_fmgrtab.sh.in
src/backend/utils/fmgr/fmgr.c
src/include/catalog/pg_proc.h
src/include/utils/fmgrtab.h
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/opr_sanity.sql