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.96) (envelope-from ) id 1w65ZR-003wKu-0h for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 11:41:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w65ZP-009QOR-24 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 11:41:44 +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.96) (envelope-from ) id 1w65ZP-009QOJ-1A for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 11:41:43 +0000 Received: from mail-dy1-x132f.google.com ([2607:f8b0:4864:20::132f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w65ZN-00000001JEm-15J5 for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 11:41:42 +0000 Received: by mail-dy1-x132f.google.com with SMTP id 5a478bee46e88-2c179d4e1a9so2208790eec.1 for ; Fri, 27 Mar 2026 04:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774611700; cv=none; d=google.com; s=arc-20240605; b=eESpyNx9dmjF7Sc5aCnDy3Yoldcp8ex3PG2Z//PcHJ26FAQmqx+aDlcqwTc0lggrye sRJx0HaN7OMHGEJmwnerVVj1pfQNXzZUSId78DQS+TpZ2fGR+JB3u+9jikhWgIOMvLkn evN2FZB7/qX5k8orjezi8f9vlQcHBMh5nBmFLpdyJPmj74dmffCHQDtad/YVvaUgFKpQ EkGLnCFmH2X6GWjYOkX/yBl68v+DqYXh+xKRrAVRlBrhZUDTMi53HMd/MbsAbPVnEJEU FN6HGAV8FrnXCx5A4rPFTlG4xuRhsgl/IO9d+wqyhM/ZKNpMk6HORh9/XJrRg8bGtw2M iUmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wAuZ8celBR8MBv+TU95afE7YrBME3yix/gGfyXZTYY8=; fh=WeWxHuvUn1CiDJSrRRoXfDz6Fhn5TCoJBIExoLaPuoc=; b=KwVKbeS/N78N/N3wsidkKYip619eOx5Svo+0VbCvjm2H2EChUgPnk5uNcNVwzWkgCy ugOqfbqwquqre3mi/JE4Tbn5Bbvw+sC+lFaIuRN5B+sOMTTNU+Y/xPde20+90BrdZYaO AmKRBEnCREMqAQClmXUWAKRxXsswwlaTu+YRSejvekU+P0NkfKhM/aQowVx/wehFO8ps u3s17gCouterYfLHemoU0qdp8tiUxMAdJM6NoLtd00IS3UD8MlnJu6kdcd6QQLqPbILO 7ILjFkF7k/Lje6Qn5ZEnZ+r3IwQ65MNNl5APnjdivzBbJXGc53AB1QF9CDXhxkGFtsD4 BanQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774611700; x=1775216500; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wAuZ8celBR8MBv+TU95afE7YrBME3yix/gGfyXZTYY8=; b=FGGLt5k5Hp0rX87uxN3JKMeUK2SnuhV9sQsqnoL5ewaBn+jNuGeb1KGSw/i3Ndey9A MMHlFzDJwd4yPPV1EksjJ0FJEIcPn1jHJfKDTOLRHJkjTZt8AqkExp54k1akSvPC/X+D MgG2LTLGCVSGg8yOcTCu3eSzaxcp5fAXTAG97KvQkofdnN6BOqaZYxm5ImGb+QHauW1b yHqEXU9U6+tHYd91XElaxdzug8IO4yqZ3zm8efNkPho3jrWTsQYYHXrRUO5gQ/fgUKiu /SvXEuf8WXMn6VAxLkDZXfj/1EgvMxkJENfSq4475Up18c1jON4BEvkK51vhXsbuk8C/ BBLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774611700; x=1775216500; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wAuZ8celBR8MBv+TU95afE7YrBME3yix/gGfyXZTYY8=; b=JoYyc3+np1ucALFufWJGrBrusFx9fBpNTbmuVD6B5fgFEMA88iMVQs9iGe8pcwLQjZ x7EWydUGSNDYv6ZPFljqJu0ckQVJbvH3+NPNKs6a/RlMLxeytIwcz1mTLhiEQUKCzW+P rQii2VgtE6LVvFL1cUUQKXWhLrsdOJSclDPHJCuJMGI6wnYw506+S0HUWuaXrocxY7qf o1Hf584snf0WOsPIrMZ+QgNuxyk2cdCeEiyAeF/q+8FM+oqdeYCPH/Tk69O66JQnrVCS FHjiKu5pxGsdJCCu+vEmgBqtcKST64uiBh98I1kve/F28WARBSc0CFflMS9vsYqIHE0v AiMQ== X-Forwarded-Encrypted: i=1; AJvYcCUAbjKrFmW1Ny+/oH/F79bku85r/Pur+zVpYeMeWPtN12IOVsfLM5OrVFuUTSFzBz0ws/ZupDmyetuwCIs2@lists.postgresql.org X-Gm-Message-State: AOJu0YztG7C1TIeL76oClwnc/4MUyQ1KxmLxdIFLc1PNeh+sVhXdbzu/ X+Uwkdc4+5G2Bjpxczdi5c96cYyS87DAhrbiEMJ04nAOfEuUuvz9OXj8vUdx7ivJ1AAt6EnPOaX LFppFNZ5Q60OyoxsX2rewkyMZG10VCJ8= X-Gm-Gg: ATEYQzylsyKJ0ra7Ve37Ip+yuFhi1MTmRW3zh5eLIzXvre6L2OWpJurX/Kegjn4JcU8 ej+Ov9DTvN8tMelUzL08k9ujlwXKM/gRgp+tOiGBJ/otehMALG++T3nZ4YVtbJ0ahzYQeS+GAuc 2cTkHw3G3gDAYKzSVn+Ah3ek+dsFYnECDSLzGt/FHPR816r+cri8QADkcuhlO489nu/HQmxg2s/ Is0i2MWTBEphNdSjV5fMA1mFcrUqtMNR2L+eNNSQKF1Dfa97IZuttp9Z7FIEvnAfTWGpe6aZrHx 1w+FmbJprvjJtB9ofZAu5xRE5irkQ+kjT5eMrk1wcu0Ih9C2D3d65wCtuYhN78Y/FFmLfiHY/AH 69UtiViUw6poYPnGDWnqg+B1P4XUvQMdoQH5gV/X0 X-Received: by 2002:a05:7300:7314:b0:2c1:71a8:3845 with SMTP id 5a478bee46e88-2c185e54d8bmr1176893eec.19.1774611700153; Fri, 27 Mar 2026 04:41:40 -0700 (PDT) MIME-Version: 1.0 References: <3660951.1741016970@sss.pgh.pa.us> In-Reply-To: From: Etsuro Fujita Date: Fri, 27 Mar 2026 20:41:29 +0900 X-Gm-Features: AQROBzBZspE4s7au_aQ8wxkviABZh-ibDBL_DmvsR8p_iEyWl3uhLji3mDNxiRI Message-ID: Subject: =?UTF-8?Q?Re=3A_Options_to_control_remote_transactions=E2=80=99_access?= =?UTF-8?Q?=2Fdeferrable_modes_in_postgres=5Ffdw?= To: Ashutosh Bapat Cc: Fujii Masao , Tom Lane , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 9, 2026 at 8:41=E2=80=AFPM Etsuro Fujita wrote: > On Mon, Mar 9, 2026 at 12:47=E2=80=AFPM Ashutosh Bapat > wrote: > > If the primary doesn't allow modifying data in the foreign table in a > > read-only transaction, a standby shouldn't do that either. The users > > who are expecting a read-only transaction to protect against any > > writes to the foreign data on primary will also expect so on the > > standby. If users want to use standby's ability to modify foreign data > > for the sake of load balancing, that's a reasonable ask. However, we > > need to figure out whether it's common enough to support. That > > information is not readily available. I doubt that it's a common > > usecase. If this fix breaks such applications, we will come to know > > its spread. And such applications can use dblink. Alternately we can > > add the option which I and Tom didn't like [1]. But I feel we should > > do that only if there are complaints. It's going to be painful to > > those users who experience application breakage. To ease that pain we > > should highlight this as a compatibility break change in the beta > > release notes, giving users a chance to complain during beta cycle so > > that we can fix it by GA. > > > > If others know that the current behaviour has a widespread > > consumption, and they can provide backing data, adding the option > > right away is better. > > +1; I agree with you 100%. Barring objections, I'll commit the patch early next week. Best regards, Etsuro Fujita