pgsql: Install a lookaside cache to speed up repeated lookups of the - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Install a lookaside cache to speed up repeated lookups of the
Date
Msg-id 20071128184756.CC0CF7540F0@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/catalog:
        namespace.c (r1.102 -> r1.103)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/namespace.c?r1=1.102&r2=1.103)
    pgsql/src/backend/parser:
        parse_oper.c (r1.98 -> r1.99)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_oper.c?r1=1.98&r2=1.99)
    pgsql/src/include/catalog:
        namespace.h (r1.51 -> r1.52)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/namespace.h?r1=1.51&r2=1.52)

pgsql-committers by date:

Previous
From: dfetter@pgfoundry.org (David Fetter)
Date:
Subject: dbi-link - dbi-link: Changed README.Oracle and
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Adjust the names of a couple of tsearch index support functions