Revert: Avoid looping over all type cache entries in TypeCacheRelCallback()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 8daa62a10c911c851f7e9ec5ef7b90cfd4b73212
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-08-25T21:22:44Z
Releases: 18.0
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

PathChange+/−
src/backend/utils/cache/typcache.c modified +44 −231
src/tools/pgindent/typedefs.list modified +0 −1

Discussion