pgsql: Optimize SearchPathCache by saving the last entry. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Optimize SearchPathCache by saving the last entry.
Date
Msg-id E1rAKGc-008dS7-RV@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Optimize SearchPathCache by saving the last entry.

Repeated lookups are common, so it's worth it to check the last entry
before doing another hash lookup.

Discussion: https://postgr.es/m/04c8592dbd694e4114a3ed87139a7a04e4363030.camel%40j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a86c61c9eefaba7dcf375cd60c875c871ed60945

Modified Files
--------------
src/backend/catalog/namespace.c | 88 ++++++++++++++++++++++++++---------------
1 file changed, 57 insertions(+), 31 deletions(-)


pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: pgsql: Teach convert() and friends to avoid copying when possible.
Next
From: Amit Kapila
Date:
Subject: pgsql: Fix a random failure in 003_logical_slots.pl.