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 1w71VG-004skj-2C for pgsql-committers@arkaria.postgresql.org; Mon, 30 Mar 2026 01:33:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w71VF-000Ngq-0V for pgsql-committers@arkaria.postgresql.org; Mon, 30 Mar 2026 01:33:17 +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 1w71VE-000Ngi-34 for pgsql-committers@lists.postgresql.org; Mon, 30 Mar 2026 01:33:17 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w71VC-00000001jBr-1jxN for pgsql-committers@lists.postgresql.org; Mon, 30 Mar 2026 01:33:15 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-35c1a131946so2302239a91.0 for ; Sun, 29 Mar 2026 18:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774834393; cv=none; d=google.com; s=arc-20240605; b=W9e6Yv+V1v/YzwAsMwPuyZRvIpvFSUIIJwdWNyMr7gIt+ZJd0t8YLft93zX0xCoHh3 dBqX2EeTTomiCPcxUSmUOhsWjYnWEeSv8brw24xG8mS7/262wOG/wMsAW0mYtMVA3O52 sh0po8QdaX2CpwuNWurZGYZ81PDR+2F0vY7TiLO5OIfZXzefIjoTvZ9W/Kg28b0bVilI C2/1qfDUr6smVzwgYbyJlDvUnSvq4+nic+lnq2cbOM8kl8gHWjGrO5x2thxiHC0EXhjw Fp8XESptO54tAw66SWkPVfzPkbp4oacjt01bFXf+lO6DIzhFU9v8NxkVJN2tlJd8A3R+ J4eg== 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=9h4GWKf0MzJ9UWEa7r+1PGgbUluo58excOdHf1fhO1E=; fh=XURFJt9vErQEbRHXrviynXmN0IABQuuPSBvr1y9Mz6M=; b=XpO5WwnoxAsAITjrg56HofytfSz4eM8ZgWfg0qNgwBR9lxS9HeSNeaWPZtSWlNveY8 ES/3VVneZoo9KcI5107538nHUufuvCM4ZHPTnKwS03+VSwn4wuqF5DUlD6P67C34ykuj F8XgNXtlJUf0VB430UkNxUUY1B6ESXPy66HtFl9MJ/tIWcuenrgg5aPok23Z/UX7tUH8 kg51qe+pCRzm1c9hSXXuRjZXPIx1LhjqnWcMEnJs3Ays2dCyOEWd3MSdS5GANG9yxqfl RhK2ivzdpfQhhDfbpd1pHX3OdVpUU3BcB3Pm0lKn49VoJCVPhdnpDsRuDTyD4a6qY5de oNdA==; 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=1774834393; x=1775439193; 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=9h4GWKf0MzJ9UWEa7r+1PGgbUluo58excOdHf1fhO1E=; b=RLr/QQ7T140QwTLoXwQTxrOgAQPoOJiJLk4FfY/wBWDeNcdHtOxVd87bIBWYeKREfX eyQNmbjjPa91umjLorp/hZNXLrhXY6qq8hjUG2BE1wzQUnN7k6ntcMEDrEQ29bb7CvoT P7zAq/lTUjRCGkpaTQ9BOh+zgY2+ht+279dM4aKo/wldxaFKSs/zgpLeqyqDBwWY3h5l mR9AKNmbTA6fEgKgkC+duKs+AxRzMNDW+vExwzj1dbyIan9iFIaU6JV2E7eNtf24Zdjf u33Qs51BfqftSgegzYYVXAR9oNOFjyA2XxnB4hkb4ezV+zz5SL7BFXeB+BBaXLcJ7D7T UW4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774834393; x=1775439193; 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=9h4GWKf0MzJ9UWEa7r+1PGgbUluo58excOdHf1fhO1E=; b=QfNKdOrokzrwNx8ImHkCtcM3I/BX5CVQZeiC0Ar6wotd3d8DP2cGq/5a+sEptJyouF cVujEi6mMOBq1gCZYuFb5ICiTrNGHFJa5vIpMWSLOb3q2VsU5ehzprvW8pK2WBLD60BL 7Jt25eE/3FCkgTbmyvyjAUUkcyjh4hNC7vuVK012/jbAxH2oiEdS0IN6WuxWxO+NFTZz GLY3Gt8w5RLM8fLs51NUl8U0ldeznPRwm/1kj7pjArYG99qG6kGvG1g0i0V7X9nf49/F SqJN/WwZ6spME/NfWwAnS0y4xXQc29m8H3v4bfzetmveEkUaNQYsAa2DYZ08ApvXeXXp 3Hbg== X-Gm-Message-State: AOJu0Yw4puP0YsGNDZp5qNpn5OpxbRC/JW8kJ1DfuKQIMFas1mVXLGcW 4fTY5oup+yQfMGAm5YpKpDopkAMi3IHlzQENsTo/LQuYrVebfwFv3hrG01UEAWedPcW4P85t+Y0 xLx/SgoYs1771AqprKSn8hjvohfjRUYQ= X-Gm-Gg: ATEYQzz7V+bqjnEw8WUsBXwrNV0xoIKXA57hHlASjp4yvyPG/fzG/9pgZRFvLsvQbl5 0lzZc45o7h1V3soR69CLl+A5oob8QyFPTFT0uJ7anLtmt0rziT5jarCRJpvofMS8Qs0GPgHrI1N DIO/OyiSP/O75CFcXrT6dgCPXA/elCe21M61TW9dsNa9KgjZV9+onN+Co2LmutLMe6O8GBFu7PR TEcPeGGAXsa/RhjELAeVDUQAtFg7ZhWEu1LkeJaHTV4L6as3uS5y6PMruNT0XTmvpL6pGCEmNxr UQKgFYpP X-Received: by 2002:a17:90b:52c5:b0:356:21e9:73ff with SMTP id 98e67ed59e1d1-35c30d79315mr8367760a91.11.1774834393246; Sun, 29 Mar 2026 18:33:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Langote Date: Mon, 30 Mar 2026 10:32:57 +0900 X-Gm-Features: AQROBzA9br_I9_L3xIQ1P2joQuj1h82BIxLtGrK01x37wOFnrkg6ml_aWOk7PIc 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 On Fri, Mar 27, 2026 at 4:15=E2=80=AFPM Amit Langote wrote: > On Fri, Mar 27, 2026 at 4:09=E2=80=AFPM Amit Langote wrote: > > 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 start= up > > > phase of run-time partition pruning wasn't clear about which partitio= ns > > > were being locked. Fix that. > > > > > > Reviewed-by: Tender Wang > > > Discussion: https://postgr.es/m/CAApHDvp738G75HfkKcfXaf3a8s%3D6mmtOLh= 46tMD0D2hAo1UCzA%40mail.gmail.com > > > Backpatch-through: 13 > > > > > > Branch > > > ------ > > > master > > > > > > Details > > > ------- > > > https://git.postgresql.org/pg/commitdiff/121d774caea4c93c8b36fb20a17e= f774e60894d6 > > > > - EXPLAIN output. > > + EXPLAIN output. The query planner obtains l= ocks for > > + all partitions which are part of the plan. However, when the e= xecutor > > + uses a cached plan, locks are only obtained on the partitions w= hich > > + remain after partition pruning done during the initialization p= hase 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. > > Will apply the attached. Pushed. --=20 Thanks, Amit Langote