Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uy8d6-004NMc-U3 for pgpool-hackers@arkaria.postgresql.org; Mon, 15 Sep 2025 12:48:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uy8d4-00BZdm-Qa for pgpool-hackers@arkaria.postgresql.org; Mon, 15 Sep 2025 12:48:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uy8d4-00BZde-G6 for pgpool-hackers@lists.postgresql.org; Mon, 15 Sep 2025 12:48:23 +0000 Received: from mail-yw1-x112c.google.com ([2607:f8b0:4864:20::112c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uy8d2-000XdJ-17 for pgpool-hackers@lists.postgresql.org; Mon, 15 Sep 2025 12:48:22 +0000 Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-724b9ba77d5so39635757b3.3 for ; Mon, 15 Sep 2025 05:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tailorbrands.com; s=google; t=1757940500; x=1758545300; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kMzkiJ1FBwfTq7fT47hN/VD/S7hbFUsXylOkRJR6x7c=; b=KZxSHinE1z7tk55jvToKNoBAIv4259Jg/TuDbmhQxRpm193qKdpovhF5nLUMhmPLk2 kUruvaspEoNy4azOZPzKZHeuAi3xnWrb56irPBqH9Pa9YFVyIqfzd3hA0o0KAt8mrA9m UxMqeFEa6L8dR77zlgeshQDnuB3sIASgXTn+Vq9W9E9EgyOOtcbqiaVzQpduu3e72PLU NzpKKAMgFFnIp4l5CGA3LM/NeYz5oz0ETHSn10r+sf5NotaJclw1a2nWLv3m9uu6LIxE wZSPhj1mSVlGxcfbKZsBDTUaNhS28RWdEz81M/uN86BSeIEcnR+LXTf6YfIA/Fe321rF zscg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757940500; x=1758545300; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kMzkiJ1FBwfTq7fT47hN/VD/S7hbFUsXylOkRJR6x7c=; b=FwOxOPTh0AMn3dtsdKicHn+3EApqVaSPzEAfnnBlVchhel73uhR8WKL1XIzGKUhjV4 CoGjdI7zolhYaaEjLaUPJ4ogXsa34XF2GsY+EwBER2nURf1FIqP7Ab4+KkW8hs7uCETn RLnR4rCqx6Cyh5m+AOx8YXzwy+BSxL4ZCxm6u3i7Y2aju0+L8fv3D7ul6UJW58YFmDVW SKymzD2210Hz1YDMSa8qdwmUJKPF7DaRWEnHBWaWuWdPN0h62/7mJiC9SeIYjvj97Vno CjnBKrrnKaBoMaaJqyAQRfQJuGtwzMySv8sqQ2hQkGN1ntPkb2XjioVug/PPHkHVlT1b dpow== X-Gm-Message-State: AOJu0Yx4CsljqZgOy5gIpFx4+FQ9x1y69j1z/xeoi4zExGVhnGJQd47u 9E1xVZKwnDMBtlcw3NFHKOvZU2vG2kLCRN9htLQ0CmQXPEINXmqsARYFrNNkAsalLPpOmWwb7SI omSPSK9k1sGFAiOuDnJ2XCGGQpuMR9udeJDbxV6eDllAxWKy1HN+VknRUywv86xA= X-Gm-Gg: ASbGncvG64gKP66/tzQ0bJ1CkK2i/67lgUP6L4nUhSSbs4ixVOOAZEKU8i9GMQvnt+y 3wh3prDiC9Odxe18kN4TPtEHumjZej31aM/dxhnUaXPVVtEt6S4GoJCN79I8AF3ijFrQwVKI8AU fRpF/JcD9tidhdHSHTQ/PV3rr7YxFIp7SJnKJgWZaz3izx3QECKZIq99ImgMwwpEb/z9nEgeZ2G 7o1eGkgXeX2RtDSUIUAIfN2o47K103fIZTzMV/1fSu1I3d77xs5oE8XGEdHjg== X-Google-Smtp-Source: AGHT+IHRb4Sg8w+IsRLGiJUFD6DzWOXeFzIlTPBl3AKdiLTbsQ00Y9scfMh+rpHENG8xeEb6+D6E6HvBMqUZh4IenJc= X-Received: by 2002:a05:690c:6d07:b0:729:df2d:4a5c with SMTP id 00721157ae682-73063191cc9mr110299387b3.11.1757940499750; Mon, 15 Sep 2025 05:48:19 -0700 (PDT) MIME-Version: 1.0 References: <20250908.092628.942175382089863152.ishii@postgresql.org> <20250909.093944.156562835222886259.ishii@postgresql.org> In-Reply-To: <20250909.093944.156562835222886259.ishii@postgresql.org> From: Nadav Shatz Date: Mon, 15 Sep 2025 21:48:07 +0900 X-Gm-Features: Ac12FXwE1oVqzUgM_zvwse5s_3_BQ39O7lsAoNQSaejQBUVXdqo1nrNGN3CrcZ8 Message-ID: Subject: Re: Proposal: recent access based routing for primary-replica setups To: Tatsuo Ishii Cc: pgpool-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000064459063ed66bf7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000064459063ed66bf7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tatsuo, Sorry for the late reply - I'm traveling with my family at the moment (in Japan actually) and might be delayed in responding. Re your points: 1 - we can, but I have to say that a user I tend to prefer configuration values not have a "magic" value that does something different than the usual case like this would create. I'd stick with what we already have planned. happy to hear from others on the mailing list as well of course. 2 - I think we can have the primary always be the first or we can completely remove it since it might be redundant as it's always going to be 0. what do you think? 3 - I agree with you, next version (after we clear everything else) will have only ip/hostname+port. Let me know your thoughts Thanks! On Tue, Sep 9, 2025 at 9:42=E2=80=AFAM Tatsuo Ishii = wrote: > Hi Nadav, > > > Hi Tatsuo, > > > > Please find attached the 3 patch files (implementation, tests, docs) wi= th > > the updates we discussed. > > > > What do you think? > > I haven't read the code details yet but I have a few questions. > > 1) Can we use only replication_delay_source_cmd and if it's value is > 'builtin', then we treat it as replication_delay_source =3D builtin? > Maybe this is matter of taste but I would like to know your > opinion. > > 2) replication_delay_source_cmd will be given an ordered list of > instance identifiers. But it seems there's no way for the command > which one is the primary instance. Is it okay for the command? > > 3) Why do you have 3 kind of instance identifiers (application name, > hostname (IP) + port and node id? I thought "hostname (IP) + port" > is sufficient. > > Comments? > -- > Tatsuo Ishii > SRA OSS K.K. > English: http://www.sraoss.co.jp/index_en/ > Japanese:http://www.sraoss.co.jp > --=20 Nadav Shatz Tailor Brands | CTO --000000000000064459063ed66bf7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Tatsuo,

Sorry for=C2=A0the late= reply - I'm traveling with my family at the moment (in Japan actually)= and might=C2=A0be delayed in responding.

Re your = points:
1 - we can, but I have to say that a user I tend to prefe= r configuration values not have a "magic" value that does somethi= ng different than the usual case like this would create. I'd stick with= what we already have planned. happy to hear from others on the mailing lis= t as well of course.

2 - I think we can have the p= rimary always be the first or we can completely remove it since it might be= redundant as it's always going to be 0. what do you think?
<= br>
3 - I agree with you, next version (after we clear everything= else) will have only ip/hostname+port.

Let me kno= w your=C2=A0thoughts

Thanks!

On Tue, Sep 9, 2025 at 9:42=E2=80=AFAM Tatsuo Ishii <ishii@postgresql.org> wrote:
Hi Nadav,

> Hi Tatsuo,
>
> Please find attached the 3 patch files (implementation, tests, docs) w= ith
> the updates we discussed.
>
> What do you think?

I haven't read the code details yet but I have a few questions.

1) Can we use only replication_delay_source_cmd and if it's value is =C2=A0 =C2=A0'builtin', then we treat it as replication_delay_sourc= e =3D builtin?
=C2=A0 =C2=A0Maybe this is matter of taste but I would like to know your =C2=A0 =C2=A0opinion.

2) replication_delay_source_cmd will be given an ordered list of
=C2=A0 =C2=A0instance identifiers. But it seems there's no way for the = command
=C2=A0 =C2=A0which one is the primary instance. Is it okay for the command?=

3) Why do you have 3 kind of instance identifiers (application name,
=C2=A0 =C2=A0hostname (IP) + port and node id? I thought "hostname (IP= ) + port"
=C2=A0 =C2=A0is sufficient.

Comments?
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp


--
Nadav Shatz
<= font color=3D"#000000">Tailor Brands=C2=A0| CTO
--000000000000064459063ed66bf7--