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)
commitd54ca56743d5b0bb43f7cd951290384a6933e9f9
tree8133128188b9f28e4ac5f833c3a5f9f965e4d117
parenta238bd146d696bf8c034a0c3a3197f37f111addc
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