Re: Invalid primary_slot_name triggers warnings in all processes on reload

2025-09-24 Thread Fujii Masao
On Wed, Sep 24, 2025 at 12:11 AM Álvaro Herrera wrote: > > Hello, > > > > /* > > - * Check whether the passed slot name is valid and report errors at elevel. > > + * Check whether the passed slot name is valid and report errors. > > + * > > + * When called from a GUC check hook, elevel must be 0.

Re: Invalid primary_slot_name triggers warnings in all processes on reload

2025-09-22 Thread Amit Kapila
On Fri, Sep 19, 2025 at 12:00 PM Fujii Masao wrote: > > So I agree it's safer to free them explicitly. In the attached updated patch, > ReplicationSlotValidateName() now pfrees err_msg and err_hint when needed. > +error: + if (elevel == 0) + { + GUC_check_errdetail("%s", err_msg); + if (err_hint

Re: Invalid primary_slot_name triggers warnings in all processes on reload

2025-09-18 Thread Fujii Masao
On Fri, Sep 19, 2025 at 8:21 AM Chao Li wrote: > > > > On Sep 19, 2025, at 00:48, Fujii Masao wrote: > > Fujii Masao > > > > ``` > +error: > + if (elevel == 0) > + { > + GUC_check_errdetail("%s", err_msg); > + if (err_hint != NULL) > + GUC_check_errhint("%s", err_hint); > + } > + else > + erepor

Re: Invalid primary_slot_name triggers warnings in all processes on reload

2025-09-18 Thread Chao Li
> On Sep 19, 2025, at 00:48, Fujii Masao wrote: > > Fujii Masao > ``` +error: + if (elevel == 0) + { + GUC_check_errdetail("%s", err_msg); + if (err_hint != NULL) + GUC_check_errhint("%s", err_hint); + } + else +

Re: Invalid primary_slot_name triggers warnings in all processes on reload

2025-09-18 Thread Fujii Masao
On Thu, Sep 18, 2025 at 10:54 PM Fujii Masao wrote: > > On Fri, Sep 12, 2025 at 9:12 PM Fujii Masao wrote: > > > > Hi, > > > > While reviewing the patch at [1], I noticed that if primary_slot_name is > > set to an invalid slot name in postgresql.conf and the configuration file > > is reloaded, al

Re: Invalid primary_slot_name triggers warnings in all processes on reload

2025-09-18 Thread Fujii Masao
On Fri, Sep 12, 2025 at 9:12 PM Fujii Masao wrote: > > Hi, > > While reviewing the patch at [1], I noticed that if primary_slot_name is > set to an invalid slot name in postgresql.conf and the configuration file > is reloaded, all running postgres processes emit the WARNING message > as follows. I