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 1uN81s-00CT5J-9A for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jun 2025 10:41: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 1uN81q-007HZT-8I for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jun 2025 10:40:58 +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 1uN81p-007HZL-V6 for pgsql-hackers@lists.postgresql.org; Thu, 05 Jun 2025 10:40:58 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uN81n-000N3A-3C for pgsql-hackers@lists.postgresql.org; Thu, 05 Jun 2025 10:40:57 +0000 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-3115a6db4d6so624715a91.2 for ; Thu, 05 Jun 2025 03:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749120055; x=1749724855; 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=K3lr6zntFRyD+VzU/WPRi9gfCzW945V+Jd1m0QE2IKg=; b=Rg15V0ii9S5hEJm0LU+ptn0j2mjhIAPBL6iyfdDAYs5AuiWQQVCLGhpum3BzNejDP4 +l1s+1xSXQwHiUJLscjm4VQoexwZl50ojCIX1BvrFuxQ8Vnb4+vj9/AG4xM3dgoD0d8w XrOosCzxvLyXT2LwFx+Zh1BfI1XZOcwgdY++WcKyIv9Mx9UjS6s+YLSVfL8uO4fw8flz kvNXWgE6tb7BRgtwAjOiDfGksPQ742lC2f4d18quAxOnSQsHg+fjNtibpuVkSHHReRFp syJqmew/uQHPQNr6bPnzjeoaRjWfqVV6OrdK6RhwHxOmyJlrc6pPAzv9+FAtFgVO+2Gz SAMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749120055; x=1749724855; h=content-transfer-encoding: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=K3lr6zntFRyD+VzU/WPRi9gfCzW945V+Jd1m0QE2IKg=; b=u9lqXGeBOYxKjE+AcgKyYgFF3cWiW+JAHHNhqVXeHYLf7NyVs48Jy0E90zrgwDoIVl YTQR3avSqF64WVAagSJl2HofzPPu9nPJc2dnAhTp6jhsob6fs3BGNODwNvaNKLfBqmOS Q4HWbCOufDWrYxVaNOmhIFup4b2Dxl+lwMocUlq8B0yKkxzBXsjuRCQlNAWigMEWPPjn N8/u+NazaY5myHlUQv9PykzU5J3lM2j9nOlWJ8h5YtAorOM1vA1DTTTgZi8okiV8dws2 lzQz+p6l5NUH2MTxsPcV9b9In8ruta9iAh7CA1o8EltVaFymOsGoQXnCVQb9EObRx2/2 u5Jw== X-Forwarded-Encrypted: i=1; AJvYcCWanDk/wJFVNkxHsgn+wpO0UDOeM/tFkAcKZqn1XheOYY5xDRgQHRIRAuV+OZcZzg8ueF8qGo+4Pjhcnc5D@lists.postgresql.org X-Gm-Message-State: AOJu0YzfDuhAv54RUHj46ZOPhOVKSH9/8aCJWSof/9XNiMZIYgcrsxNC uDsU+LlYjg4vM9WOhsqroM7d2PTbTzIUpYCeiNdbqKJR0HiwK4Gq6lfm4jfwaxX2OoKUjF00onR deNs14BPXxmbSoxTi3vmAcKNXCKaR8Jw= X-Gm-Gg: ASbGncvU42dNReMLpl/4Pj2nb/wfXTRuXJXEsqJk4snHDHrls03g3QGSpc7Yb2WQL7w UfUM7KnBRoSLsYaOBtDPJH7XlqzBE4OW5cScAQGe18A+biG9nxt+QVmDcK+QT1md9PLHY0qMSur ao2rTWFpU3cXluscVllp8OZkgrSKJXC8AdZC540qKcnLzUkZ85Eik72lozQh4/v0dz0Rs= X-Google-Smtp-Source: AGHT+IEthR1rwMzP4yvdziQFlR1ZP9fDsQQx8enNnQ4MDB8+slDLYO0PyLBVWfp8m35CKJntVYN9YUjZ+zrqObfmFEo= X-Received: by 2002:a17:90a:d406:b0:311:e8cc:424e with SMTP id 98e67ed59e1d1-3130cdaef6fmr10039911a91.24.1749120055000; Thu, 05 Jun 2025 03:40:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Etsuro Fujita Date: Thu, 5 Jun 2025 19:40:43 +0900 X-Gm-Features: AX0GCFsefXtlYHfTaA44QdJpfk1n6-E5GuHtibtjaiKVmDA0_7WrxFRwKzbPJHM Message-ID: Subject: Re: pgsql: postgres_fdw: Inherit the local transaction's access/deferrable To: Robert Haas Cc: Michael Paquier , Fujii Masao , Etsuro Fujita , pgsql-hackers@lists.postgresql.org 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 Thu, Jun 5, 2025 at 3:39=E2=80=AFAM Robert Haas = wrote: > On Tue, Jun 3, 2025 at 6:45=E2=80=AFAM Etsuro Fujita wrote: > > No, this is a fix, not a feature, as discussed in the thread; as > > mentioned in the commit message, the previous version of postgres_fdw > > could cause surprising behaviors that would never happen in normal > > cases where a read-only and/or deferrable transaction only > > accesses/modifies data on the local server, so this commit fixes those > > behaviors. But yes, it makes a behavior change, so I think it=E2=80=99= s a > > good idea to add a note about that to the v18 release notes, as > > proposed by Fujii-san. > > Sometimes, people can have different opinions about whether something > is a bug fix or a behavior change. So far, I don't think you've > convinced a single person either on the original thread or on this one > that this is a bug fix, so I believe that, at present, the consensus > is that this is a new feature. Although you may not agree with that > consensus, and you may even be right, we all have to do what most > people agree is right rather than what we ourselves prefer. A consensus we reached on the original thread is that if the previous behavior is considered problematic, we should fix it; otherwise, we should not. I proposed to fix it for the reason mentioned above, and went ahead, as there were no objections about that. But seeing the comments on this thread, I have to agree that this is a feature rather than a fix. > For what it's worth, I agree with others that this is not just a bug > fix: it's a behavior change that should be subject to the feature > freeze. I personally think that it's probably a desirable behavior > change, and that it's small enough that we could consider leaving it > in v18 if that meets with general approval. We have had cases like > this, where something feels too disruptive to back-patch, but is still > on some level a fix or correction of behavior, in the past, and we > have sometimes decided to handle those by allowing them to be added to > the major release after the feature freeze deadline, but not > back-patching them. So in my mind that is a possibility here. > > However, that would require a pretty unanimous agreement that this > change is an improvement, and it appears to me that we don't have > that. I read Fujii Masao's comments to indicate that he doesn't > necessarily agree with the change and wants it reverted, and I read > Michael Paquier's comments the same way. Unless I'm misunderstanding > their position, this needs to be reverted. Agreed. I will revert this in a few days. And I will re-propose it as an improvement for v19. Thanks for the discussion! Best regards, Etsuro Fujita