Prevent crash when calling pgstat functions with unregistered stats kind

Edit
ID 6965
Title Prevent crash when calling pgstat functions with unregistered stats kind
CI (CFBot) Summary
Stats (from CFBot) Patch version: v3, Patch count: 1, First patch: +8−10, All patches: +8−10
Tags Bugfix
Created 2026-07-01 07:27:40
Last modified 2026-07-02 07:45:13 (2 weeks ago)
Latest email 2026-07-02 06:53:50 (2 weeks ago)
Status
PG20-1 (2026-07-01 – 2026-07-31): Committed
PG20-2 (2026-09-01 – 2026-09-30): Moved to different CF
Target version stable
Authors Bertrand Drouvot (bertranddrouvot.pg)
Reviewers Become reviewer
Committer Michael Paquier (michael-kun)
Links
Emails
Prevent crash when calling pgstat functions with unregistered stats kind
First at 2026-07-01 07:19:49 by Bertrand Drouvot <bertranddrouvot.pg at gmail.com>
Latest at 2026-07-02 06:53:50 by Michael Paquier <michael at paquier.xyz>
Latest attachment (v3-0001-Fix-test_custom_stats-modules-to-error-out-when-n.patch) at 2026-07-02 04:43:32 from Bertrand Drouvot <bertranddrouvot.pg at gmail.com>
    Attachment (v3-0001-Fix-test_custom_stats-modules-to-error-out-when-n.patch) at 2026-07-02 04:43:32 from Bertrand Drouvot <bertranddrouvot.pg at gmail.com> (Patch: Yes)
    Attachment (v2-0001-Prevent-crash-when-calling-pgstat-functions-with-.patch) at 2026-07-02 03:27:18 from Bertrand Drouvot <bertranddrouvot.pg at gmail.com> (Patch: Yes)
    Attachment (v1-0001-Prevent-crash-when-calling-pgstat-functions-with-.patch) at 2026-07-01 07:19:49 from Bertrand Drouvot <bertranddrouvot.pg at gmail.com> (Patch: Yes)
History
When Who What
2026-07-02 07:45:13 Bertrand Drouvot (bertranddrouvot.pg) Closed in commitfest PG20-1 with status: Committed
2026-07-02 07:45:13 Bertrand Drouvot (bertranddrouvot.pg) Changed committer to michael-kun
2026-07-02 07:45:13 Bertrand Drouvot (bertranddrouvot.pg) Moved from CF PG20-2 to CF PG20-1
2026-07-01 07:27:40 Bertrand Drouvot (bertranddrouvot.pg) Attached mail thread akS/ldidWeqG1FWk@bdtpg
2026-07-01 07:27:40 Bertrand Drouvot (bertranddrouvot.pg) Created patch record
Edit