Re: Prevent crash when calling pgstat functions with unregistered stats kind
От
Michael Paquier
Тема
Re: Prevent crash when calling pgstat functions with unregistered stats kind
Дата
Msg-id
akXwVgoofSBd--pG@paquier.xyz
Ответ на
Re: Prevent crash when calling pgstat functions with unregistered stats kind (Bertrand Drouvot)
Список
Дерево обсуждения
Prevent crash when calling pgstat functions with unregistered stats kind Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Ewan Young <kdbase.hack@gmail.com>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Michael Paquier <michael@paquier.xyz>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Michael Paquier <michael@paquier.xyz>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Michael Paquier <michael@paquier.xyz>
Re: Prevent crash when calling pgstat functions with unregistered stats kind Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
On Thu, Jul 02, 2026 at 04:43:32AM +0000, Bertrand Drouvot wrote: > On Thu, Jul 02, 2026 at 04:23:16AM +0000, Bertrand Drouvot wrote: >> Ok but what about extensions that don't call pgstat_register_kind() at all? Your >> point is that they would see the issue during the development of the extension? (If >> so, I think I could agree). Extensions doing custom stats have to call the register API, or they're broken. This is the same assumption as custom RMGRs. There are many ways to break the backend if you don't know what you do, just take hooks for example. That's just one of them. > Something like in the attached? Yes, that looks OK here. -- Michael
В списке pgsql-hackers по дате отправления
От: Alexander Lakhin
Дата:
От: Bertrand Drouvot
Дата: