Optimize SearchPathCache by saving the last entry.
authorJeff Davis <jdavis@postgresql.org>
Tue, 5 Dec 2023 01:19:16 +0000 (17:19 -0800)
committerJeff Davis <jdavis@postgresql.org>
Tue, 5 Dec 2023 01:19:16 +0000 (17:19 -0800)
commita86c61c9eefaba7dcf375cd60c875c871ed60945
tree54bd14ca13ca03336980c9bd5e6e34cf090d7c7a
parentb14b1eb4da4c97afec24cf8956e842b98ebb2a51
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
src/backend/catalog/namespace.c