pgsql: Fix _bt_allequalimage() call within critical section.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix _bt_allequalimage() call within critical section.
Date: 2023-08-23 15:13:03
Message-ID: E1qYpXa-000Usa-Pe@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix _bt_allequalimage() call within critical section.

_bt_allequalimage() does complicated things, so it's not OK to call it
in a critical section. Per buildfarm failure on 'prion', which uses
-DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE options.

Discussion: https://www.postgresql.org/message-id/6e5bbc08-cdfc-b2b3-9e23-1a914b9850a9@iki.fi
Backpatch-through: 16, like commit ccadf73163 that introduced this

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c3b874c431bc5d1399c011e9e5ce1e30b756f930

Modified Files
--------------
src/backend/access/nbtree/nbtree.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-08-23 19:01:23 pgsql: Avoid use of Perl getprotobyname
Previous Message Nathan Bossart 2023-08-23 14:50:46 pgsql: Add to_bin() and to_oct().