Re: pgsql: injection_points: Add injection_points_list() - Mailing list pgsql-committers

From Michael Paquier
Subject Re: pgsql: injection_points: Add injection_points_list()
Date
Msg-id aHMYILre3-FgticE@paquier.xyz
Whole thread Raw
In response to Re: pgsql: injection_points: Add injection_points_list()  (Aleksander Alekseev <aleksander@tigerdata.com>)
List pgsql-committers
On Thu, Jul 10, 2025 at 01:24:48PM +0300, Aleksander Alekseev wrote:
> In injection_points_list() isn't `memset(values, 0, sizeof(values))`
> redundant?

Yes, I'm just finding this to be a cleaner practice.

> Also perhaps we want to pfree inj_points.

This is freed with the memory context of the function, so any way is
fine IMO.
--
Michael

Attachment

pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: pgsql: Remove XLogCtl->ckptFullXid.
Next
From: Michael Paquier
Date:
Subject: pgsql: libpq: Add "servicefile" connection option