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 1w61Jx-003rnQ-28 for pgsql-committers@arkaria.postgresql.org; Fri, 27 Mar 2026 07:09:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w61Jv-0080DD-2u for pgsql-committers@arkaria.postgresql.org; Fri, 27 Mar 2026 07:09:28 +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 1w61Jv-0080D4-2D for pgsql-committers@lists.postgresql.org; Fri, 27 Mar 2026 07:09:28 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w61Ju-00000001HEa-1AXF for pgsql-committers@lists.postgresql.org; Fri, 27 Mar 2026 07:09:27 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2ad9f316d68so8873635ad.2 for ; Fri, 27 Mar 2026 00:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774595364; cv=none; d=google.com; s=arc-20240605; b=Cq6dfilzClm8xmlvpIE1Jdy9VxCWAf9ctuoSi58xfhfiJu8F/d3M1+P2lm3He3aswg o9qE7vRU21KuH7erGFo5ULKtp8blpkgKsh6Sq58mUCwWpJoGuYY2gOnQtRwLu2MpNZtW J1YDzxvjHe6qNTNzegyyfhxz+mNGT/49d8ggmB795jyRYH4iD9HiJjJ9K+XVsmcbaA4o YlbhNiGkhTmZ+kZB4kIt70V6P07oKROy1/+wDjlGxGwXe3+R0eXyThYcjMqb5G8Yl7cd QRx7pm+uODO4ju4tpbYRU/2LwFFZzsCh5ZhBBcYgxdjEiyNAF3tkIsLvgny3A8i5Qcch 0bfA== 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=fBfJIUIVbDdXjnvIAHWe02BO/xMsb03VXVdrNH6Rp8w=; fh=XURFJt9vErQEbRHXrviynXmN0IABQuuPSBvr1y9Mz6M=; b=XwNJL8nxt4v+pQsTx7e9VMkKAYWSlclX2Q/1DBh2Gfvchsp1K6VlxUDx1SGHl4cOlO TzNbU6s35IczhHK9Esm4eEycMbWlQMSec+KtxDLUKViLEBUi1eD6v0gjnaYuFQSQNDGo 0YcRnLAFVeWvd77V9XUk7H50boICQap2TQ0jggqNZ2y9kHLFoq9QnS7WZlpQnFDXXWbU 2SVbXcURLqspSiQoHsK58UpYIFZpgmNs+kmDl71n6I9AJxTPvG92WXGEWL+tj96lOAOU dtrlCWzutD4Zy3B8ywX7mjamZ5toULuHQrx5XMNOypzKmGM5rSCttbw7cyIcvHYSzGWp rf3Q==; 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=1774595364; x=1775200164; 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=fBfJIUIVbDdXjnvIAHWe02BO/xMsb03VXVdrNH6Rp8w=; b=sbdCckRxOeZ36QHmxIf9ZBJH55FFDdNNgTwVNn2mFzu0CKvrk4pDyCHvLG88deWrVX tC/U9qfZKh/7FKDrTInj1wWnHCZQjsiTVNFKef9tMd1fI7UjUPhrhI6c9A6SuMl/DAv9 CI47y0cWxYnVg3QuJRb8uVsPRns2ll2Bd0hI9WlxuUx9XEBhhSdkKaaeECtrAkRmOoM4 LI6Y/ZJAIJXh3YQto/kLCQ3xNe7H8v5TBygzHU4sk1V4pJX2dQqDSnPrHyt9sWJlKhQB IuNqidT9H0RZj9u+xuk1w7vmVBxevCdGp+Wf4y7PbCdYokiWAzDim23GDMerOAzllqhA aNDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774595364; x=1775200164; 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=fBfJIUIVbDdXjnvIAHWe02BO/xMsb03VXVdrNH6Rp8w=; b=a0dDwWOjuPy6JMleHvAftx4O/s09bAJFDuoX4N/z4lXUi9OcABllY433Som1hN0nsy o6W5tRJIIpqQd/T6xu3s9wiThBj3LcvPaiV0dURzHleffaJYdaq8IPACkosoxbTLP0KO FFpad3otsK96IfFVAeUfuM5FfTH+PNb8tc0l0F5hfRcHaC584y2RwQWONrjaVk9vvKl9 ZlfqASgDJTltJFjaMUY9cqPR0GP87FNoIHg7sTuS5BcgFAxPyhpbLwKRgEj/66oj3EZP raefjoJJXWex2nbQx7j0GO4ZnrQQwtV/lbNKjYsu7N3XvRx2ZlUTfCKVls4f71DXapx3 SjqQ== X-Gm-Message-State: AOJu0YxWi4RhBnMIHu2I8KPTre2eDX+PD/tGpNTvN9FbHFfPEh4Jum8Z +LWvB0b+rXbgoep1040DC/bhRvdZrXPP33EYje97qT6WbUrNc7N8RZPdn9Ut52qXzaWUFgZNLYT 3eCnvkTwemBIvNHH10Sik5KhRxjw4dF3G3W2k X-Gm-Gg: ATEYQzwqJW5g2ElG3PhEpRj9Z37d9ya6LgQOGWJaDRcVBVovjGvVGJEbtY1eu/NmejH g5DQuXarJ+RJ3hK7X3I8nE4dh26Wuy8ShPaUyIC27TV7PIA2kJj9tulws9dWVRtobbVu+BV75/N Z2WMtayJpVBQ7MPlN0bJvl1zc7RKd3vyow6wxWiWgcYiNZ/O9qEG87RF9Zzned6syXxZ+i7UPTe 8Z4Hzi71g8JVuk2680at+F7t/FM77hDqUpgQ9rgoUvIAS5qL7K4nHTo67sHe6liyFIkldcS/kM1 3LofIJbRbSTsjEWGmN8= X-Received: by 2002:a17:902:e809:b0:2ad:d0ff:2ed4 with SMTP id d9443c01a7336-2b0cdc1efa4mr15948925ad.6.1774595364269; Fri, 27 Mar 2026 00:09:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Langote Date: Fri, 27 Mar 2026 16:09:07 +0900 X-Gm-Features: AQROBzB71m7MpobkulvNyU8NXY-PPQZ8NatHHU7gjqmiftHrbE4tlj2XGWsiueU Message-ID: Subject: Re: pgsql: Doc: add information about partition locking To: David Rowley Cc: pgsql-committers@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 Hi David, On Wed, Apr 2, 2025 at 10:03=E2=80=AFAM David Rowley wrote: > > Doc: add information about partition locking > > The documentation around locking of partitions for the executor startup > phase of run-time partition pruning wasn't clear about which partitions > were being locked. Fix that. > > Reviewed-by: Tender Wang > Discussion: https://postgr.es/m/CAApHDvp738G75HfkKcfXaf3a8s%3D6mmtOLh46tM= D0D2hAo1UCzA%40mail.gmail.com > Backpatch-through: 13 > > Branch > ------ > master > > Details > ------- > https://git.postgresql.org/pg/commitdiff/121d774caea4c93c8b36fb20a17ef774= e60894d6 - EXPLAIN output. + EXPLAIN output. The query planner obtains locks= for + all partitions which are part of the plan. However, when the execu= tor + uses a cached plan, locks are only obtained on the partitions which + remain after partition pruning done during the initialization phase= of + execution, i.e., the ones shown in the EXPLAIN + output and not the ones referred to by the + Subplans Removed property. This text was correct when committed, but became incorrect after I reverted 525392d57 in May 2025. Sorry for not catching it sooner. I think we should change the text in both master and REL_18_STABLE to match what you added in the older branches. I can change it back to this when we get pruning-aware locking again. --=20 Thanks, Amit Langote