Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLAog-0002Ar-Hi for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Nov 2018 17:43:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gLAoe-0006kU-VY for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Nov 2018 17:43:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLAoe-0006kN-KY for pgsql-hackers@lists.postgresql.org; Fri, 09 Nov 2018 17:43:32 +0000 Received: from mail-qk1-f175.google.com ([209.85.222.175]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gLAob-0004s4-2C for pgsql-hackers@postgresql.org; Fri, 09 Nov 2018 17:43:31 +0000 Received: by mail-qk1-f175.google.com with SMTP id w204so2989556qka.2 for ; Fri, 09 Nov 2018 09:43:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=hbsQ+ydoERbWuFjXG/mfevOcoM7uDRf+Bzp8fmxRIyU=; b=etYbYBvyEydlHbcsyqkWxExitg+pJZnKhxrI1eSIGzJkRREb7RcnJs/nNTBE4uwaEy t4q8+KKZCucN3HzYvNOfVNrM7CZu0C8m5UAA//1aQFFKhtNWoPD9WNRTRSRPpnPJx/xT F0LcJ6dSMmJvJsRoiadn99PDK937/7UwB3+3kvly5PGELElnttT6oV0awciJf8NVKZdk o8Jvuai9YOO/88jir4Fdbi9ec3taXYFEOZLHup2cC54c/lwqyWE6cOSLaGK8E+o1IK0h oUAKqeEuRX521k29Qw+/yY9JLQA3IBgIrsnGzcqk+6aIhS20yIj/KzCkDNe8bh9BrY/t igKA== X-Gm-Message-State: AGRZ1gInegsYi3aUMmKAUWgyDw1yMcSQsULos+MwohPjqgoait6g2DLK dty5m9TuHTyI9y+Wg5tChB4Ao1+qs48= X-Google-Smtp-Source: AJdET5cUy3O1aEAEsqi18E5oLnlLlHP6zq/mgDJu+6Ebv//nv3WQeLE/jmwcYw/9SvXq2IImw/cdSQ== X-Received: by 2002:aed:2a64:: with SMTP id k33mr9563902qtf.102.1541785407600; Fri, 09 Nov 2018 09:43:27 -0800 (PST) Received: from localhost.localdomain (c-24-61-8-151.hsd1.ma.comcast.net. [24.61.8.151]) by smtp.gmail.com with ESMTPSA id w201sm5992167qkw.11.2018.11.09.09.43.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 09:43:25 -0800 (PST) Reply-To: jesper.pedersen@redhat.com Subject: Re: speeding up planning with partitions To: Amit Langote Cc: Alvaro Herrera , "Imai, Yoshikazu" , Pg Hackers , David Rowley References: <20181107033207.cdisp33ryrgeidef@alvherre.pgsql> <3be67028-a00a-502c-199a-da00eec8fb6e@lab.ntt.co.jp> From: Jesper Pedersen Organization: Red Hat Message-ID: <806bfbbb-c41e-cc22-7761-841255e8a932@redhat.com> Date: Fri, 9 Nov 2018 12:43:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <3be67028-a00a-502c-199a-da00eec8fb6e@lab.ntt.co.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Amit, On 11/9/18 3:55 AM, Amit Langote wrote: > And here are patches structured that way. I've addressed some of the > comments posted by Imai-san upthread. Also, since David's patch to > postpone PlannerInfo.total_pages calculation went into the tree earlier > this week, it's no longer included in this set. > Thanks for doing the split this way. The patch passes check-world. I ran a SELECT test using hash partitions, and got Master v5 64: 6k 59k 1024: 283 59k The non-partitioned case gives 77k. The difference in TPS between the partition case vs. the non-partitioned case comes down to set_plain_rel_size() vs. set_append_rel_size() under set_base_rel_sizes(); flamegraphs for this sent off-list. Best regards, Jesper