pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revert: Avoid looping over all type cache entries in TypeCacheRe
Date: Sun, 25 Aug 2024 21:24:53 +0000
Message-ID: <E1siKjF-001STH-LN@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1siKjF-001STH-LN@gemulon.postgresql.org>
Permalink:  ../E1siKjF-001STH-LN@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1siKjF-001STH-LN@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Revert: Avoid looping over all type cache entries in TypeCacheRe
  In-Reply-To: <E1siKjF-001STH-LN@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox