Thread: pgsql: Revert: Avoid looping over all type cache entries in TypeCacheRe

pgsql: Revert: Avoid looping over all type cache entries in TypeCacheRe

From
Alexander Korotkov
Date:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8daa62a10c911c851f7e9ec5ef7b90cfd4b73212

Modified Files
--------------
src/backend/utils/cache/typcache.c | 275 ++++++-------------------------------
src/tools/pgindent/typedefs.list   |   1 -
2 files changed, 44 insertions(+), 232 deletions(-)