mirror of
https://github.com/postgres/postgres.git
synced 2026-05-17 20:09:41 -04:00
These callbacks are receiving hash values as arguments, which doesn't allow direct lookups for AttoptCacheHash and TypeCacheHash. This is why subject callbacks currently use full iteration over corresponding hashes. This commit avoids full hash iteration in InvalidateAttoptCacheCallback(), and TypeCacheTypCallback(). At first, we switch AttoptCacheHash and TypeCacheHash to use same hash function as syscache. As second, we use hash_seq_init_with_hash_value() to iterate only hash entries with matching hash value. Discussion: https://postgr.es/m/5812a6e5-68ae-4d84-9d85-b443176966a1%40sigaev.ru Author: Teodor Sigaev Reviewed-by: Aleksander Alekseev, Tom Lane, Michael Paquier, Roman Zharkov Reviewed-by: Andrei Lepikhov |
||
|---|---|---|
| .. | ||
| attoptcache.c | ||
| catcache.c | ||
| evtcache.c | ||
| inval.c | ||
| lsyscache.c | ||
| Makefile | ||
| meson.build | ||
| partcache.c | ||
| plancache.c | ||
| relcache.c | ||
| relfilenumbermap.c | ||
| relmapper.c | ||
| spccache.c | ||
| syscache.c | ||
| ts_cache.c | ||
| typcache.c | ||