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 1v07Sq-00AsMR-Av for pgpool-hackers@arkaria.postgresql.org; Sat, 20 Sep 2025 23:58:00 +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 1v07Sm-00EAjj-9H for pgpool-hackers@arkaria.postgresql.org; Sat, 20 Sep 2025 23:57:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v07Sm-00EAja-2l for pgpool-hackers@lists.postgresql.org; Sat, 20 Sep 2025 23:57:56 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v07Sg-001wLj-0r for pgpool-hackers@lists.postgresql.org; Sat, 20 Sep 2025 23:57:55 +0000 Received: by mail-wm1-x341.google.com with SMTP id 5b1f17b1804b1-46130fc5326so22940515e9.2 for ; Sat, 20 Sep 2025 16:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tailorbrands.com; s=google; t=1758412670; x=1759017470; darn=lists.postgresql.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=9StJQCe9+N5V8cFWC5xYX/WLTXgHyUBpnblWvaxovmI=; b=EduOAdsItbT3sG9s4nDAdqJWsmp741dT7lRMmCl7LCA56LEKG9rtjRj/QdKcadukGp SXZtPVB660X0I8JkB6TVfEau5HYdHUkxwjSTfZP6jWqnUXRZEou1c4OnaJvIqiHiYVS8 T4rysUcniw0B0KLhBea73cH017Dbv0SIxxB8rtQekBbJy9fAL7fLCrT0LkXnFD/HUQae XuTNN6HeDRlk7MOajMq0Ll21e5qc8Qo+lPlaOuRTUPwrVuvNqlcPgRy467d8DSCKN5lg 63/9oJ1YGe909rnBC+BRwAJRafvBJ35B9WuserH+7wWH08dFcK7mfFE58O6qN4GGklpO QlfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758412670; x=1759017470; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9StJQCe9+N5V8cFWC5xYX/WLTXgHyUBpnblWvaxovmI=; b=G3pBd9g6/m+oEluY07HvIMmX0boJGihXUiAKEO0UyjYXUhqhMdo07CETxqhbo2XrwS M5ZUOxsTui6owUkmLjL1cpGBKc2VjxznUK4wsMbmdva/+z+kqwNwcc47e6L0tche8cRU rQop6ulzjlSFvi5Yj6WG+KQdm/4ULHRpdVNeRZV9kmR5P7dMSMbaEMvM0P9Es+REPdKQ Pjq5kyQqIEN8FOwdLuC5VhAOYBBCmHxbohZ1WNJh8KmGpl5soyLTl40Bgej0XU9WibWO 7nVAkmYsec3xrt7w/Q6i3s/6CvcWIBozrhvHomBvgrzA5vumdloxAEYUWQ6JjU1JJQLB PjjQ== X-Gm-Message-State: AOJu0YwE1//eIkf79Be3H8ztKXBwRnTIuffeAtcI61XC+7+hbYCHcMau 1mKHNcvhzH4X86Z0Ukgjn0K0lrva4LxNiCFC2srOsyPHjU3vk6ILLJF9qc3VEhanp6cATlk2TBF jJAqemX4Kk8heqWaFCHyM5Si/l9cjsoJYprWxkd6Km1SUSNGxIGa06KLBL7CdhywCD7Dyuy8oBU 43Ga+OSQwsa1cWSpx5dS1FmWOUlsqR+jWZybJmE4uLcxWV/DheVkxUas72w3HbsTUZhxDmpugfY sg= X-Gm-Gg: ASbGncuLzC1uoaUqm2GJsxpANhBSKNxOZzIsBhr3HzHr6e37x/h3AVZy7R/6vIToNvi IJHxAK2taDPes+ShvnOQEj8R8RnzbNtUhoQr5KGZpt6em4gD9MrlETuQ5qyc/1RAkVclEmkDwZc 8/Ovv/+DxWD8yvxhDU819TGiSZ37zm5vyO/vg5gqpvxI5jDY5T4RRySja7UiOWwptOol9fUCAxQ bYEdgW40uckG/2xt5oBNzi0Zh6zJBEbsRpSaKeY8WZ6SWZmZ9zRBc0m4pNTKOD6Hy3YN4LGQ6Lu EbK1sn6AxsGLY/arNYa9rMPPPfqJWF6xURJ1Kx4vLarfnHqGo/D2mqDVlJYATDsBFkE9bq4beq2 1UVimI54LFAxkHQchf0eH2GXe+VuTTe5DPgjxG83n7Im6 X-Google-Smtp-Source: AGHT+IHdPKFjFdg42pUoXBlFfvoaYgUPaRR4sC4+rEwFf4kxhmMI1EAfJfKUHfADL2avl5bpIgaeng== X-Received: by 2002:a05:600c:3508:b0:45c:b5f7:c6e4 with SMTP id 5b1f17b1804b1-467ec460848mr60244335e9.35.1758412669861; Sat, 20 Sep 2025 16:57:49 -0700 (PDT) Received: from smtpclient.apple ([2.54.25.21]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-464f16272a9sm142617005e9.8.2025.09.20.16.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Sep 2025 16:57:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Nadav Shatz Mime-Version: 1.0 (1.0) Subject: Re: Proposal: recent access based routing for primary-replica setups Date: Sun, 21 Sep 2025 08:57:34 +0900 Message-Id: <534F5F0C-708B-4DBB-AD98-101E324E5361@tailorbrands.com> References: <20250916.193012.1767059551833136064.ishii@postgresql.org> Cc: pgpool-hackers@lists.postgresql.org In-Reply-To: <20250916.193012.1767059551833136064.ishii@postgresql.org> To: Tatsuo Ishii X-Mailer: iPad Mail (23A341) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thank you for the kind words. We are having a great time! Regarding the command knowing about the primary I think it is safe to assume= . We can start this way and evolve in the future if needed. I can include a n= ote about it in the notes that the command will only receive the secondary i= nstances as arguments. Anything else that comes to mind? =20 Nadav Shatz CTO > On Sep 16, 2025, at 7:30=E2=80=AFPM, Tatsuo Ishii w= rote: >=20 > =EF=BB=BF >>=20 >> Hi Tatsuo, >>=20 >> Sorry for the late reply - I'm traveling with my family at the moment (in= >> Japan actually) >=20 > Excellent! Hope you and your family are spending great time in Japan. >=20 >> and might be delayed in responding. >=20 > No problem at all. I think you should focus on the travel at this > moment. >=20 >> 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.= >=20 > Makes sense. I withdraw my proposal. >=20 >> 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 b= e >> 0. what do you think? >=20 > What I am not sure is, whether we can assume the command always knows > which host (or IP) is primary? If the answer is yes, then we could > omit the primary. What do you think? >=20 >> 3 - I agree with you, next version (after we clear everything else) will >> have only ip/hostname+port. >=20 > Thank you for understanding. >=20 >> Let me know your thoughts >>=20 >> Thanks! >>=20 >>> On Tue, Sep 9, 2025 at 9:42=E2=80=AFAM Tatsuo Ishii wrote: >>>=20 >>> Hi Nadav, >>>=20 >>>> Hi Tatsuo, >>>>=20 >>>> Please find attached the 3 patch files (implementation, tests, docs) wi= th >>>> the updates we discussed. >>>>=20 >>>> What do you think? >>>=20 >>> I haven't read the code details yet but I have a few questions. >>>=20 >>> 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. >>>=20 >>> 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? >>>=20 >>> 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. >>>=20 >>> Comments? >>> -- >>> Tatsuo Ishii >>> SRA OSS K.K. >>> English: http://www.sraoss.co.jp/index_en/ >>> Japanese:http://www.sraoss.co.jp >>>=20 >>=20 >>=20 >> -- >> Nadav Shatz >> Tailor Brands | CTO