diff options
author | Andres Freund <andres@anarazel.de> | 2017-10-04 00:22:38 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-10-04 00:22:38 -0700 |
commit | 212e6f34d55c910505f87438d878698223d9a617 (patch) | |
tree | d4901af435b9ffe5c41aad37608767dc5c7dc422 /src/backend/executor/nodeProjectSet.c | |
parent | 18f791ab2b6a01a632653d394e046f3daf193ff6 (diff) | |
download | postgresql-212e6f34d55c910505f87438d878698223d9a617.tar.gz postgresql-212e6f34d55c910505f87438d878698223d9a617.zip |
Replace binary search in fmgr_isbuiltin with a lookup array.
Turns out we have enough functions that the binary search is quite
noticeable in profiles.
Thus have Gen_fmgrtab.pl build a new mapping from a builtin function's
oid to an index in the existing fmgr_builtins array. That keeps the
additional memory usage at a reasonable amount.
Author: Andres Freund, with input from Tom Lane
Discussion: https://postgr.es/m/20170914065128.a5sk7z4xde5uy3ei@alap3.anarazel.de
Diffstat (limited to 'src/backend/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions