Re: BUG #19520: PANIC when concurrently manipulating stored procedures with pg_stat_statements and track_functions =

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Ayush Tiwari <ayushtiwari.slg01@gmail.com>, Sami Imseih <samimseih@gmail.com>, zlh21343@163.com, pgsql-bugs@lists.postgresql.org, Andres Freund <andres@anarazel.de>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Date: 2026-06-22T23:12:35Z
Lists: pgsql-bugs
On Mon, Jun 22, 2026 at 05:28:58PM +0900, Michael Paquier wrote:
> By the way, regarding .abi-compliance-history, I am planning to remove
> the latest entry after reading how ABICompCheck.pm works in the
> buildfarm code.  It uses the latest commit as a base point of
> comparison, and compares it with the latest commit specified in the 
> ABI file.

And adjusted things on v15~v18 as of fe464e9e6863.
--
Michael

Commits

  1. Re-introduce pgstat_drop_entry(), keeping ABI compatibility

  2. Update .abi-compliance-history for pgstat_drop_entry()

  3. Fix PANIC with track_functions due to concurrent drop of pgstats entries