aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execProcnode.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-10-11 09:14:30 -0400
committerRobert Haas <rhaas@postgresql.org>2011-10-11 09:14:30 -0400
commitfa351d5a0db0672b6f586315720302e493116f27 (patch)
treecf4611779971e4253a2b5b450e76c2ec446acc7e /src/backend/executor/execProcnode.c
parente76bcaba9cb330b32e9a80dfe9cd510d802121c4 (diff)
downloadpostgresql-fa351d5a0db0672b6f586315720302e493116f27.tar.gz
postgresql-fa351d5a0db0672b6f586315720302e493116f27.zip
Replace hardcoded switch in object_exists() with a lookup table.
There's no particular advantage to this change on its face; indeed, it's possible that this might be slightly slower than the old way. But it makes this information more easily accessible to other functions, and therefore paves the way for future code consolidation. Performance isn't critical here, so there's no need to be smart about how we do the search. This is a heavily cut-down version of a patch from KaiGai Kohei, with several fixes by me. Additional review from Dimitri Fontaine.
Diffstat (limited to 'src/backend/executor/execProcnode.c')
0 files changed, 0 insertions, 0 deletions