Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvuLF-0008CY-53 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Feb 2019 01:37:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gvuLD-0002OA-Mj for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Feb 2019 01:36:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvuLD-0002O3-F6 for pgsql-hackers@lists.postgresql.org; Tue, 19 Feb 2019 01:36:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvuLA-0000jS-7T for pgsql-hackers@postgresql.org; Tue, 19 Feb 2019 01:36:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1J1aijI016016; Mon, 18 Feb 2019 20:36:44 -0500 From: Tom Lane To: "Imai, Yoshikazu" cc: Amit Langote , David Rowley , Amit Langote , Alvaro Herrera , "Pg Hackers" Subject: Re: speeding up planning with partitions In-reply-to: <0F97FA9ABBDBE54F91744A9B37151A5127E7D2@g01jpexmbkw24> References: <8ea8bbb1-31ff-a469-02a7-281c3eba4bea@lab.ntt.co.jp> <201902011001.4v25uw6w6kb5@alvherre.pgsql> <0F97FA9ABBDBE54F91744A9B37151A5127865E@g01jpexmbkw24> <5d00eb35-375d-0672-0626-96bdb86829d0@lab.ntt.co.jp> <30972.1550510855@sss.pgh.pa.us> <0F97FA9ABBDBE54F91744A9B37151A5127E7D2@g01jpexmbkw24> Comments: In-reply-to "Imai, Yoshikazu" message dated "Tue, 19 Feb 2019 00:49:28 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16014.1550540204.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 18 Feb 2019 20:36:44 -0500 Message-ID: <16015.1550540204@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Imai, Yoshikazu" writes: > ISTM the 0004 patch eventually removes these codes from multiple places = (set_append_rel_size and set_inherited_target_rel_sizes) so we might be be= tter to not be struggling here? Yeah, Amit just pointed that out (and I'd not read 0004 before reacting to 0001). If the final state of the code isn't going to look like this, then whether the intermediate state is good style becomes far less important. Still, maybe it'd be better to drop the 0001 patch and absorb its effects into the later patch that makes that if-test go away entirely. regards, tom lane