Re: Avoid core dump in pgstat_read_statsfile()

2025-04-23 Thread Michael Paquier
On Wed, Apr 23, 2025 at 08:01:40AM +, Bertrand Drouvot wrote: > I think that a check on pgstat_get_kind_info() is missing for this scenario, > the > patch adds it. Such a check already exists for PGSTAT_FILE_ENTRY_FIXED and > for stats entry identified by name on disk, but not for > PGSTAT_FI

Avoid core dump in pgstat_read_statsfile()

2025-04-23 Thread Bertrand Drouvot
1 From: Bertrand Drouvot Date: Wed, 23 Apr 2025 07:19:44 + Subject: [PATCH v1] Avoid core dump in pgstat_read_statsfile() Adding a check that pgstat_get_kind_info() is not NULL when loading the stats file. Without this extra check a non fixed_amount custom stats kind that has write_to_fi