Re: Make wal_receiver_timeout configurable per subscription - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Make wal_receiver_timeout configurable per subscription
Date
Msg-id CAHGQGwGt57NZi8=rc0y4-7+DB5=Yy87M7S+XsRp-z01e76dO2Q@mail.gmail.com
Whole thread
In response to Re: Make wal_receiver_timeout configurable per subscription  (Japin Li <japinli@hotmail.com>)
List pgsql-hackers
On Fri, Feb 6, 2026 at 3:44 PM Japin Li <japinli@hotmail.com> wrote:
> 1.
> Typo, s/timeeout/timeout/g.

Fixed. Thanks for the review!


> 2.
> The comment mentions skipping only "-1".
> Since we already use strcmp(... , "-1") later in the code, wouldn't it be
> better to use the same check here too?

With this approach, a command like CREATE SUBSCRIPTION using
a wal_receiver_timeout value such as '-1 ' (i.e., -1 followed by whitespace)
would fail, since it would not be interpreted as -1. I don't think that's
desirable behavior. So it would be better to use parse_int() so that
such input is handled correctly.

Regards,

--
Fujii Masao

Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Make wal_receiver_timeout configurable per subscription
Next
From: Tom Lane
Date:
Subject: Re: AIX support