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 1o8maI-0002Lr-07 for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Jul 2022 17:43:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8maG-0004hg-SN for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Jul 2022 17:43:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8maG-0004hW-Hb for pgsql-hackers@lists.postgresql.org; Tue, 05 Jul 2022 17:43:36 +0000 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o8maE-0005Ts-Jr for pgsql-hackers@postgresql.org; Tue, 05 Jul 2022 17:43:36 +0000 Received: by mail-oi1-x22b.google.com with SMTP id s188so16805326oib.6 for ; Tue, 05 Jul 2022 10:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timescale.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EV8vDMrfYdueCpLMPbAgLwPzUuLn0m9zRRdUZduPM94=; b=KsfGGR5/pmlurrHxjpS5am+ksLraSlc9BZ1UUC4t0HgDUW9nhOLENegO+FAg0aDK4n IrsVmxTWQO/BJ0XnErkw8DTeLslre26AfD/T/kFImaDNFFtzPw1KeQA/w0n+Q2Ob80Ah RuPgYDY6Hx7ZIpg6Am8iFT6J/BMX81NlDMyQD4ehqdD0BYDiXKxrU1vdgZ7pzeOkb9md SWrHtEESUEPI4m5V0T5JeXehBs7DWD278N9SQlXwCNYsxqAfuiiXAeJ6LHUIWJD27+8J SKEeg+Lo9pP+PcaEyCR4Y7T4bHVB2XysWwxfUxUNoh+s/nGwggOZuyoUV3EPpK4GPl8d zoEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EV8vDMrfYdueCpLMPbAgLwPzUuLn0m9zRRdUZduPM94=; b=gi7cvnhA7cDd186Pz4o2x1NY7sboP5uKQRtxw31Ojp4UVCBssaNesZiWhZ5honkzxk SqkFShpvzjiJzaopICx0JUrTwEnR5F1LGQgAPEqkaXZxcBtZrgN+/UkZ4S2Yqe9Z+do0 SAkWorjPWW3Lah4F5hFfhem5m0IKdIgJ/HA4AKPHMLpIR3wXMASR77aY6KckAjqWtJOX eWSlJK3vwgcOCVHc+LeeBMFnHC9xayjPbbtI22YPpc4LL7InleCPjooQGw9SMiYARFxe ODEiQSuBCs29w/VVxovnWiAkE8i7dfsgO+tBsmmihaRAHaCXJRXm+d+daf0Sp/+9Sgfr AR7g== X-Gm-Message-State: AJIora8u8jvPc2vP6XfsKPjdLTDxIMH6AN+dI0edRXeoKek4BWzixZE3 4wtfU+7D7g2Elgj1d8+KmNYtWYkW+9omrusrWrGEFA== X-Google-Smtp-Source: AGRyM1sr9FmrmIqpWin32JAW5kJN4f7QN+3EetE/qv+jrPfkEiCMUA0rTB7F4h8dvQFzP4eT6gHZDzbCzfU9dM4aF7I= X-Received: by 2002:a05:6808:f8d:b0:335:6ee0:cd2c with SMTP id o13-20020a0568080f8d00b003356ee0cd2cmr20015993oiw.285.1657043012425; Tue, 05 Jul 2022 10:43:32 -0700 (PDT) MIME-Version: 1.0 References: <215356.1647286703@sss.pgh.pa.us> In-Reply-To: From: Jacob Champion Date: Tue, 5 Jul 2022 10:43:21 -0700 Message-ID: Subject: Re: generic plans and "initial" pruning To: Amit Langote Cc: Zhihong Yu , David Rowley , Robert Haas , Tom Lane , PostgreSQL-development Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, May 27, 2022 at 1:09 AM Amit Langote wrote: > 0001 contains the mechanical changes of moving PartitionPruneInfo out > of Append/MergeAppend into a list in PlannedStmt. > > 0002 is the main patch to "Optimize AcquireExecutorLocks() by locking > only unpruned partitions". This patchset will need to be rebased over 835d476fd21; looks like just a cosmetic change. --Jacob