Install a lookaside cache to speed up repeated lookups of the same operator
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Nov 2007 18:47:56 +0000 (18:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Nov 2007 18:47:56 +0000 (18:47 +0000)
commit68731dd038439d92af62f39cd30193a35843d065
treeb870f102f6a44e834d166ac51ee4ef0ee3b56aa2
parent843ea0b0b2894a110d916fe6a59bd607e325dfe2
Install a lookaside cache to speed up repeated lookups of the same operator
by short-circuiting schema search path and ambiguous-operator resolution
computations.  Remarkably, this buys as much as 45% speedup of repetitive
simple queries that involve operators that are not an exact match to the
input datatypes.  It should be marginally faster even for exact-match
cases, though I've not had success in proving an improvement in benchmark
tests.  Per report from Guillame Smet and subsequent discussion.
src/backend/catalog/namespace.c
src/backend/parser/parse_oper.c
src/include/catalog/namespace.h