Re: Add callback in pgstats for backend initialization

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Cc: bertranddrouvot(dot)pg(at)gmail(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Add callback in pgstats for backend initialization
Date: 2024-09-04 06:04:09
Message-ID: Ztf4WYoz6TY19_G3@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Sep 04, 2024 at 02:15:43PM +0900, Kyotaro Horiguchi wrote:
> The name "init_backend" makes it sound like the function initializes
> the backend. backend_init might be a better choice, but I'm not sure.

We (kind of) tend to prefer $verb_$thing-or-action_cb for the name of
the callbacks, which is why I chose this naming. If you feel strongly
about "backend_init_cb", that's also fine by me; you are the original
author of this code area with Andres.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2024-09-04 06:04:28 Re: DOCS - pg_replication_slot . Fix the 'inactive_since' description
Previous Message Michael Paquier 2024-09-04 05:54:43 Re: GUC names in messages