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 1uqPMd-005Nvs-Dt for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Aug 2025 05:03:28 +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 1uqPLe-006FdY-PX for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Aug 2025 05:02:27 +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 1uqPLe-006FdQ-Fj for pgsql-hackers@lists.postgresql.org; Mon, 25 Aug 2025 05:02:27 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uqPLc-001hdW-2m for pgsql-hackers@postgresql.org; Mon, 25 Aug 2025 05:02:26 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-33670e8c975so5575831fa.3 for ; Sun, 24 Aug 2025 22:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756098144; x=1756702944; darn=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=jC6JSJIPXKTmQpmkF467T4wNwCd+P42PNEQIYYZWffI=; b=g6RNSa/GW3YD9UcqCqNsNwsmI5lAymUgq4n9q5vvFjbv/x/XrEalBzFCzuXuKq4KP1 AaSN6Q/WGgBepkrBfH4HozrvR4FPRMcYDIwYXU3Od6ZxcsdfohGe4HI2b/WMC9v3rT76 Qs/eMfM1bJqt9n9w+U0YM76tG0qz5nValNGoj/xR2IxohJ5iKBmsQSjudKcG6zTcpiaO hBK3MLGQbRoRoEC4hAZ2PmEcp0WmKZjQ5axDxDoJZW8nNmWxATgXrPwN7MN8vPQPp8aN B3J7eq0prj2DmBRQFbmxHAEhw0pg7CEY4pPj7sIXcN8gf/3wEhsHU+PSkWyYodChBumg awnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756098144; x=1756702944; 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=jC6JSJIPXKTmQpmkF467T4wNwCd+P42PNEQIYYZWffI=; b=rrUAqvU17LY0liQkgZUQlpwa1+uZMyB2qvnQgPiAyWDW4wV7eFE3RMrmqGC8aDRzjO jKPvLBSBVyWTH6SSkQip68L+haGwB1e4+pLybYQcfp4y0RBg5l2f0Xe1NrXs3uR3gu7Q MYYE560LQ2BALwWRP30WxMucnpcya45xRgCemDTAlH/uTQFd5tGt1gyPyUVVrGud/+l8 cIocReVg860z7c2f012neDkkEPUZnTaji6k/l6HClj3ieJZGqAHlBLhBIpu4q2jzflW6 MfvzojQ4IksamzVBZ7XrNOxIqUZ0MO3Il3EJjkYxNOSeatqVJBYZNTeTmD4msugmf/po 3pFQ== X-Forwarded-Encrypted: i=1; AJvYcCUvuJVkWTaF9leSvnZSODhJfyen/dPdy0qsxSn+Oa+jXKENffU16GThpy1xrrMp/0wZ7RRD0dCRT4Bf/iGl@postgresql.org X-Gm-Message-State: AOJu0YyWZj0HdC6ZksJzowNEqxDvJ9Tgh+OV3pbi7jD8otzuJJ2sejM0 2IiHztb0hU4YUGV2ID2/AimhmUdVu9vsNqKXmzq5x27dzfrTKBkMAadwTV450yfZU2U8XqKVxz/ uzPH9U63DCoQNf2ri43WvbsSK2RGjuCM= X-Gm-Gg: ASbGncsy6bq6iVC7ym2Sw0Uhyg01VSoDbOY+M16sIWM4BXlM+/WiLnrwwf6Uqr1EJdC E59U/5Lw6r/KSlu97AS/w0g8GhHtX1QwFYITbauxJr9qFC6po59kLyMi9tzxnqVBcPgihkwu2li vZLTeJnnNFciVl9y1Pk9Z185+E84vH6bJ1W2l+MJkB0LtmVMM93Zyp2C1kcbW53OD/4LZqVDE3i BlcInpcrQ== X-Google-Smtp-Source: AGHT+IF2E9suKa374Y8OA2fjD8D0J51dLv4tJUQjbb1Wn7asB2BQpUrN0f6GZXxpTMawFy4FlH/WzngnQQktbc86zFU= X-Received: by 2002:a2e:a985:0:b0:336:7589:27cc with SMTP id 38308e7fff4ca-33675892d96mr7648731fa.13.1756098143670; Sun, 24 Aug 2025 22:02:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Mon, 25 Aug 2025 10:32:12 +0530 X-Gm-Features: Ac12FXyCGDH66253LqpozI5345CWPc4oBQkDmIl2C5cDi9o-3imaQ8vIWsofnHA Message-ID: Subject: Re: [BUG?] check_exclusion_or_unique_constraint false negative To: Mihail Nikalayeu Cc: "Zhijie Hou (Fujitsu)" , Peter Geoghegan , "Hayato Kuroda (Fujitsu)" , PostgreSQL Hackers , Andres Freund 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 Fri, Aug 22, 2025 at 9:12=E2=80=AFPM Mihail Nikalayeu wrote: > > Amit, a few more explanations related to your message. > > > IIUC, the problem you are worried about can happen with DELETE+INSERT > > in the same transaction on the subscriber, right? > > Technically, yes - this can occur during a single UPDATE, as well as a > DELETE followed by an INSERT of the same key within the same > transaction (which is effectively equivalent to an UPDATE). > BTW, then isn't it possible that INSERT happens on a different page? --=20 With Regards, Amit Kapila.