Revert: Avoid looping over all type cache entries in TypeCacheRelCallback()
Alexander Korotkov <akorotkov@postgresql.org>
Revert: Avoid looping over all type cache entries in TypeCacheRelCallback() This commit reverts c14d4acb8 as the patch design didn't take into account that TypeCacheEntry could be invalidated during the lookup_type_cache() call. Reported-by: Alexander Lakhin Discussion: https://postgr.es/m/1927cba4-177e-5c23-cbcc-d444a850304f%40gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/cache/typcache.c | modified | +44 −231 |
| src/tools/pgindent/typedefs.list | modified | +0 −1 |
Discussion
- type cache cleanup improvements 66 messages · 2024-02-29 → 2025-04-29