OSDN Git Service

Provide a namespace.c function for lookup of an operator with exact
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 May 2006 23:22:43 +0000 (23:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 May 2006 23:22:43 +0000 (23:22 +0000)
commita65a49429f1a6722a6be4a9784b4e08fab8ca380
treefc407bfe62a483e5e738654feeb344e58c0f3f58
parent82a2881c5b230d62bc811a374503625226be02ae
Provide a namespace.c function for lookup of an operator with exact
input datatypes given, and use this before trying OpernameGetCandidates.
This is faster than the old method when there's an exact match, and it
does not seem materially slower when there's not.  And it definitely
makes some of the callers cleaner, because they didn't really want to
know about a list of candidates anyway.  Per discussion with Atsushi Ogawa.
src/backend/catalog/namespace.c
src/backend/parser/parse_oper.c
src/backend/utils/adt/regproc.c
src/include/catalog/namespace.h