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 1wlhzO-000LFx-1B for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jul 2026 07:00:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wlhzO-002Sqm-04 for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jul 2026 07:00:33 +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 1wlhzN-002Sqd-2M for pgsql-hackers@lists.postgresql.org; Mon, 20 Jul 2026 07:00:33 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wlhzK-000000014jm-1Hf5 for pgsql-hackers@postgresql.org; Mon, 20 Jul 2026 07:00:32 +0000 Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-38e7109321dso615815a91.3 for ; Mon, 20 Jul 2026 00:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784530828; x=1785135628; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=YoqxRUoIJFDHTt91xr5uVXd97mmIY1nRa/OU+hMTurc=; b=m97m9i1WVgc5jfOMweostfO5a1YpqnZ9gVS4hIzXoehWd/ESmob7JgENMFICdVUcTL sPPXV8d/b18BjaCHeow4G4QywlhcZEY0I+PjbXP6oNiMC95iXT1qpMyyPgdQ5d4Velfl AcLRbDK/1/SZwxOf6tssohyCuP6rY8/CRS+abTrDZM6kjWWMWkFceK2CafOCyPn/Kk1J jnajeMLyIKVbYpVUl4ik1qq4uq4z4aIHfzMVtC24p5lOqPWensVBphs+SpZYsuMX18RE 04w0Jt6lFwug0kVxID0Dju+TeSD5VjvL9T6+VOd44gizp1LU/jOdd7jgP1B/leZhiGsc F9GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784530828; x=1785135628; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YoqxRUoIJFDHTt91xr5uVXd97mmIY1nRa/OU+hMTurc=; b=AG9cBn7NvyD7whDSimVTuSo7KOmqfY05uD4JmGIL8pNJcWy1f8eAclrXuzNxl2Z2CU xN4E6Hmi5Cw6BxQk4o2w1OGy69e5qlMcDGU/4eL6s0vn+kMu+5gqD8PVenL6mRljHQEH ZQ33yUfweJXP4b+bmlr8LsVOXSWMNyY2dfo8XUuOVDB69hUpyZFYo5YAtdmsnAshhJIr ePt8ICV04sYjx1b6Di1+aX2LVIttAP1kyNuz0MO78dpMUDYn3SSxa/IrH3IHgsoKlRPf D1lofKsnYASa11tb0FH1LeRzUUdqVucXban8Fe+iHY9fHnUwZPzj7l08AlPILHRqHd9L Mewg== X-Forwarded-Encrypted: i=1; AHgh+RqsBESJWKUxeKxnpLyGhxS5/BpoOu8+rNCv6seQRfbhWUCqttWFrtHZxIwz6CVgvCCInnqDhgZxbSqAp8dU@postgresql.org X-Gm-Message-State: AOJu0YyhE4tr0ie9c9BUVPrIx4oSFm7TpLhBdsNeGXOJBbjanrRtcP4R FSWO305vBZQAheAfnRxdn4rnvvN7zwufUESV5bfneWw3hfGOcMuiFE2n X-Gm-Gg: AfdE7cnRe/gERJzn/hYatmRETWAnHs8veNfbVp4qR7wy1S+64Lp30PpoymUFuAJ8vlF Aqh+FrLWyw4DdN/eAq4vR54NDRav4WPAHYI2PQ/38u9LrHh6jP/tIsqjAC1UXH2WxPrfBgRbPKq xYReorptqP22EzhNoshz5PJXbsxZpycSndcARUNTDTwcYTUzDfIjjJGVAmFLwq8qTM3LTf1s+pC twkN4tpAYKeSwrev4MNAzpIVnXzuVMJ/e7Fg42ZJOq8koG36g3oqXP4BdYLLr5t4p9sE3SNjlwA 3cMcCa6WWZXN1+CFPjJwl4rYupwxbHzCZBYtI1W/bn8ltq1oSPxGHmC+lVgDsBDMiM0nrUXBTFr 1xmCJ3jYwRxFMj/9EZVb8PgWUqCg/FECK4nHlwOdIeXtrqL+e1ZX0Swy7mD1lobwY4Zct5HGZ3I aP2Ad9Xc5aFqNbAoPDmO1m+w== X-Received: by 2002:a05:6a21:48f:b0:3c3:8d4c:6679 with SMTP id adf61e73a8af0-3c3ad7a885amr14109947637.20.1784530828314; Mon, 20 Jul 2026 00:00:28 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.125]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cb517f8f77dsm4243539a12.11.2026.07.20.00.00.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jul 2026 00:00:27 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: Fix RLS checks for UPDATE/DELETE FOR PORTION OF leftover rows From: Chao Li In-Reply-To: Date: Mon, 20 Jul 2026 14:59:51 +0800 Cc: Paul A Jungwirth , Dean Rasheed , Ayush Tiwari , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: <174C770E-07C8-4400-AC80-A46BFC2B68DD@gmail.com> References: <6C34A987-AC50-4477-BD71-2D4AFEE1A589@gmail.com> <07EF5F4D-4AA3-4C21-8868-9ACC0D8B6655@gmail.com> <20DF964A-C291-491A-9126-62753DCBD7CE@gmail.com> <49247968-DB60-4FF3-892F-CF910E63ADBA@gmail.com> To: Peter Eisentraut X-Mailer: Apple Mail (2.3864.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jul 20, 2026, at 14:53, Peter Eisentraut = wrote: >=20 > On 16.07.26 17:35, Paul A Jungwirth wrote: >> On Wed, Jul 15, 2026 at 6:10=E2=80=AFPM Chao Li = wrote: >>>=20 >>> Actually, when I received v4, I was also working on addressing = Dean=E2=80=99s comments. >>>=20 >>> I reviewed both v4 and v5, made some small adjustments, and here is = v6: >>>=20 >>> * For the create_policy doc change, I changed =E2=80=9Ccheck new = row=E2=80=9D to =E2=80=9Ccheck leftover rows=E2=80=9D. >>> * For the =E2=80=9CSELECT rights=E2=80=9D comment, I moved it into = the block comment, because its position in v5 looked like a placeholder. >>> * For the tests, v4 and v5 added the new cases in the MERGE section. = I added the test in a more direct section. >>> * For the tests, v4 and v5 granted INSERT privilege. V6 = intentionally does not, because the test runs UPDATE/DELETE FOR PORTION = OF, and INSERT privilege is not required for inserting leftover rows by = design. >> I took a look. These all seem like improvements to me. >=20 > committed v6 Thanks for committing. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/