Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okmzF-0007W4-Os for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Oct 2022 13:50:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1okmzD-00042j-PW for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Oct 2022 13:50:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okmzD-00042a-Fk for pgsql-bugs@lists.postgresql.org; Tue, 18 Oct 2022 13:50:27 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1okmz6-0003Q0-W0 for pgsql-bugs@lists.postgresql.org; Tue, 18 Oct 2022 13:50:26 +0000 Received: by mail-pj1-x1029.google.com with SMTP id o17-20020a17090aac1100b0020d98b0c0f4so16038082pjq.4 for ; Tue, 18 Oct 2022 06:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LG/JddtDJtUyIxEs12AfW6OyhmX2K8eHq9iWOTBjdyA=; b=h0AROE9niaaPvls6ip0mKoas9wRTbqsaeDSMKtEcFfGcUsPZjHgxElo9pN7Xjo9F6f aQ9j5DR8+MARbNN9Cx16bj7KJYc6B+pwHB73Xfs1I5QvMFbftZuaDQpQguOltthaq88y vFq0M+eOw1RdPuKfblEj4smbJuZSdiVDD2P0H3kRHFMcSYyd5Fi0Mx7j2ILKUJYz8pTo 1hcnskpdxyAqthVHkeR8Kh6uUyvXeYKL56GCKJSLBPUNxjuJQ6dusOWvx5APZgkltLva Du1SRXC3IeCMlAMXrZkY67Cua3qWTYOMJAXj8BT5hnZgG0lIM/z3v+qAVJpVq+d9uazK RMZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LG/JddtDJtUyIxEs12AfW6OyhmX2K8eHq9iWOTBjdyA=; b=CQKLve3VJav6X/wRdjvzTYoYTpr6zkEL/L5VBKY6+6/3cYY36R5ZMs7MulfPCbpb3U uLGaltVwmPFagPer6f57N16TJBBWP9a9xRSKtY58ReE20nC8eW6nyGBKFNLyjN/D2P42 U6tFn9jaGH7vG/99jeAozmOx2x7qzbiupGKdHjpbV/KtozgCnatqE8BvqAivl2Ofyhpw FhdxGMeOOZ6qeXw4G/rW4RWmmpzjL2+2HzKO5CpQ4nFOHU+izDFyHFV9VWOyrn5EoDM8 GgrBaDqae5akbasMRB4QtNWebr+SoQkFQoKaBA1TtCmpbizpAGiAE9hme6hFztHcY3lU janA== X-Gm-Message-State: ACrzQf1wXU7RHDASgcSVFBZXbCam6wTWeioj8MhzAaLJhGGpewM2Mw+K XLIzmJ9CnUmqWedPC//xjXA= X-Google-Smtp-Source: AMsMyM4BI1ILOnuunPEMxXJGVmdRAcRLg3ZcCoggnvT7+w95i/bPWjUYuyWrFlQXNz8BNc0z3Xquvg== X-Received: by 2002:a17:902:ce86:b0:182:498f:afd3 with SMTP id f6-20020a170902ce8600b00182498fafd3mr3358802plg.82.1666101019570; Tue, 18 Oct 2022 06:50:19 -0700 (PDT) Received: from jrouhaud (2001-b011-1006-1ebe-d832-ef37-671f-0ce2.dynamic-ip6.hinet.net. [2001:b011:1006:1ebe:d832:ef37:671f:ce2]) by smtp.gmail.com with ESMTPSA id d204-20020a621dd5000000b0056238741ba0sm9163966pfd.79.2022.10.18.06.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 06:50:19 -0700 (PDT) Date: Tue, 18 Oct 2022 21:50:17 +0800 From: Julien Rouhaud To: dafoer_x@163.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17650: For the sixth time, the clipping function in the 120 partition table planning stage fails Message-ID: <20221018135017.cefttdymnmooh4af@jrouhaud> References: <17650-4523221bc4eb0c33@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17650-4523221bc4eb0c33@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Tue, Oct 18, 2022 at 01:11:13PM +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 17650 > Logged by: dafoer > Email address: dafoer_x@163.com > PostgreSQL version: 14.0 Unrelated but you should definitely update to the latest minor version, currently 14.5 > Operating system: centos7.6 > Description: > > The clipping function of partition table cannot be carried out normally in > the planning stage. The extension protocol cannot be clipped in the sixth > execution. When concurrency is high, lock contention is serious I'm not sure I fully understand. Are you saying that partition pruning (1) doesn't happen after 6 execution of a prepared statement? If yes, it's not a bug but a known behavior of generic plans. You can dynamically set plan_cache_mode to force_custom_plan for the cases where generic plans are known to behave poorly. [1] https://www.postgresql.org/docs/current/ddl-partitioning.html#DDL-PARTITION-PRUNING