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 1nZsit-0008Ns-Qu for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Mar 2022 11:12:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZsis-0000mD-OY for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Mar 2022 11:12:14 +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 1nZsis-0000m4-9b for pgsql-hackers@lists.postgresql.org; Thu, 31 Mar 2022 11:12:14 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nZsip-0002Fz-SB for pgsql-hackers@postgresql.org; Thu, 31 Mar 2022 11:12:13 +0000 Received: by mail-ed1-x52a.google.com with SMTP id x34so27718236ede.8 for ; Thu, 31 Mar 2022 04:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=twIl6ysptxN1ID+FLtiqymE+BvHO690hqWSwJj5ok4U=; b=msCG3U89tn8o5MdgnW0wqp7YyRx2+GLjl0BnyU7vJ79TXKBgxvMcUPyXUTV8ycGI7q vDIjG0iQbD2BvMYFBQRqvtEfaaKyev0zAQqbAmMHh/mqptaNe+/6B0J6/iKmOCtZKKhv zdaqIRHz6g61kwm+yjotjI7cF1O93CT/x5d/josxI4Ecl2ovdYikwq3lu7Kzid0ryjrX xQytb/XLgpRMkoDxhTd/xiCbYKTEMWV2J65FEBUjh9zbGLW/vEBRjUPuQjzb/AsyB3jO aGFhjConc+z9UFePqfxPiMQ4IUSubdQplpheM17tDo732Us4LauXV4iHvsK8tIDvCvEK 9cpA== 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=twIl6ysptxN1ID+FLtiqymE+BvHO690hqWSwJj5ok4U=; b=mIeSTuR96LJ0G+Q52SfFnwlKCd8C5M/pROq2+RqehtcW3PV/Q4XuocOJGrj4hWi0BV EH5Ino2yDx2PPDico+giCoH840WmjBmv0lByJvyjW3+OmAsJ5X0hcT1lMhOMoPF9j6n2 RdJVqnVWoABmmwWgjPRswet/qtiEo+S5TboFeHmE+An6jT3eEN35CP4sM/LAjZ6IjK4+ kzREbFQWvD6M6unnS2urRLk2Mzm7K3swNlrJ0GApOacknaW0HmYQClCAvPAFSn+HafiD FrT4coAG8/WMFvd5/4HseZQd6YEpG/wcZj+GX2DW3lfxsuphy52WRjcyfm2zU4+w4Fyn klnA== X-Gm-Message-State: AOAM531FPrjoWOCpG3K+2MYwh6oG1lA3XEvDgGAUjnU0cgKAzfBSxAPq 4AMzJaTnp+3xbX0Fyq1VJIKp9oKmy+Su3x58unY= X-Google-Smtp-Source: ABdhPJwEoETAtsfjg+2rywA1d+4SRgtcstFy+b1GltH9zkQXaTQ+rAfx59VY5I+m7W5ydltQJSnE0yb1iwGd2AK5agw= X-Received: by 2002:a05:6402:2743:b0:419:4edd:c487 with SMTP id z3-20020a056402274300b004194eddc487mr16154227edd.325.1648725130347; Thu, 31 Mar 2022 04:12:10 -0700 (PDT) MIME-Version: 1.0 References: <202203310956.pz6sazhzzfcq@alvherre.pgsql> In-Reply-To: <202203310956.pz6sazhzzfcq@alvherre.pgsql> From: Amit Langote Date: Thu, 31 Mar 2022 20:11:54 +0900 Message-ID: Subject: Re: generic plans and "initial" pruning To: Alvaro Herrera Cc: Robert Haas , Tom Lane , PostgreSQL-development , David Rowley Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Mar 31, 2022 at 6:55 PM Alvaro Herrera wrote: > I'm looking at 0001 here with intention to commit later. I see that > there is some resistance to 0004, but I think a final verdict on that > one doesn't materially affect 0001. Thanks. While the main goal of the refactoring patch is to make it easier to review the more complex changes that 0004 makes to execPartition.c, I agree it has merit on its own. Although, one may say that the bit about providing a PlanState-independent ExprContext is more closely tied with 0004's requirements... -- Amit Langote EDB: http://www.enterprisedb.com