Revert: Avoid looping over all type cache entries in TypeCacheRelCallback()
authorAlexander Korotkov <akorotkov@postgresql.org>
Sun, 25 Aug 2024 21:22:44 +0000 (00:22 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sun, 25 Aug 2024 21:22:44 +0000 (00:22 +0300)
commit8daa62a10c911c851f7e9ec5ef7b90cfd4b73212
tree5c0ed62151685aed09e62e3d48524d346c5080a7
parentc14d4acb81348a34497b53a19dce2924cc4f6551
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
src/backend/utils/cache/typcache.c
src/tools/pgindent/typedefs.list