postgresql/src/backend/utils
Tom Lane 8ff5f824dc Reduce the size of the fmgr_builtin_oid_index[] array.
This index array was originally defined to have 10000 entries (ranging
up to FirstGenbkiObjectId), but we really only need entries up to the
last existing builtin function OID, currently 6121.  That saves close
to 8K of never-accessed space in the server executable, at the small
price of one more fetch in fmgr_isbuiltin().

We could reduce the array size still further by renumbering a few of
the highest-numbered builtin functions; but there's a small risk of
breaking clients that have chosen to hardwire those function OIDs,
so it's not clear if it'd be worth the trouble.  (We should, however,
discourage future patches from choosing function OIDs above 6K as long
as there's still lots of space below that.)

Discussion: https://postgr.es/m/12359.1547063064@sss.pgh.pa.us
2019-01-09 15:22:43 -05:00
..
adt Replace the data structure used for keyword lookup. 2019-01-06 17:02:57 -05:00
cache Don't create relfilenode for relations without storage 2019-01-04 14:51:17 -03:00
error Update copyright for 2019 2019-01-02 12:44:25 -05:00
fmgr Reduce the size of the fmgr_builtin_oid_index[] array. 2019-01-09 15:22:43 -05:00
hash Update copyright for 2019 2019-01-02 12:44:25 -05:00
init Update copyright for 2019 2019-01-02 12:44:25 -05:00
mb Move the built-in conversions into the initial catalog data. 2019-01-03 19:47:53 -05:00
misc Update copyright for 2019 2019-01-02 12:44:25 -05:00
mmgr Update copyright for 2019 2019-01-02 12:44:25 -05:00
resowner Update copyright for 2019 2019-01-02 12:44:25 -05:00
sort Update copyright for 2019 2019-01-02 12:44:25 -05:00
time Update copyright for 2019 2019-01-02 12:44:25 -05:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Update copyright for 2019 2019-01-02 12:44:25 -05:00
Gen_dummy_probes.pl Update copyright for 2019 2019-01-02 12:44:25 -05:00
Gen_dummy_probes.sed Update copyright for 2019 2019-01-02 12:44:25 -05:00
Gen_fmgrtab.pl Reduce the size of the fmgr_builtin_oid_index[] array. 2019-01-09 15:22:43 -05:00
generate-errcodes.pl Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile Use symbolic references for pg_language OIDs in the bootstrap data. 2019-01-03 18:38:49 -05:00
probes.d Update copyright for 2019 2019-01-02 12:44:25 -05:00