pgsql: Fix attach of a previously-detached injection point.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix attach of a previously-detached injection point.
Date: 2024-08-22 07:09:17
Message-ID: E1sh1wb-000tKn-HJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix attach of a previously-detached injection point.

It's normal for the name in a free slot to match the new name. The
max_inuse mechanism kept simple cases from reaching the problem. The
problem could appear when index 0 was the previously-detached entry and
index 1 is in use. Back-patch to v17, where this code first appeared.

Branch
------
master

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

Modified Files
--------------
src/backend/utils/misc/injection_point.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-08-22 07:29:39 pgsql: psql: Add more meta-commands able to use the extended protocol
Previous Message Alexander Korotkov 2024-08-22 06:56:14 pgsql: Avoid repeated table name lookups in createPartitionTable()