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 1ggVez-0002Gu-UD for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Jan 2019 14:13:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ggVey-0007yG-9c for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Jan 2019 14:13:44 +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 1ggVex-0007y9-T1 for pgsql-hackers@lists.postgresql.org; Mon, 07 Jan 2019 14:13:44 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggVeq-00083t-Av for pgsql-hackers@postgresql.org; Mon, 07 Jan 2019 14:13:43 +0000 Received: by mail-io1-xd2e.google.com with SMTP id k2so374005iog.7 for ; Mon, 07 Jan 2019 06:13:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m8g5xTAWnVh02rS/obIstw8ypMUVnKzi5sjyp3/Rtqk=; b=e8xkW5+i1kPGkHquyR8cdPb+x6cZQYVeVT7i98xBwmdE1ONmu9D+4ZFAyaA8v86hYg auFpovG1vs1xBH1frI9MHHzHStwmuMKfLxP2Q/zzlRNvUU8GvfusgswlSDRvKXVvvgRL VlB1zqaFj/5cEMXS7TQISAz2hjL1/uyt+pEwoxWH1/cwdkD0yGdhOqicO9f4kIQLpLJc FKGBfprqF8zwldFjcm0pJeh1TDbl+SouOC/ucC/FKtvFZ3QAIEik8WCPLOCC/wWLm8Vd MBy5lhf2s7gfFPIz3pqg/r6S1A6vH3PQN7HqqkxJbAvl3oFaDPMTE8CeBbZDjs4DRStD 9lcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=m8g5xTAWnVh02rS/obIstw8ypMUVnKzi5sjyp3/Rtqk=; b=M5DEbbkkhyNyd5vm6X0ovGX6V26gAdq9ipg7Php+oXMehUGUFnPZz2k9gx10kqrTSl M4n4tgtKW/C75CBJ9MxZ6q92sqk0I/Y6IgceG1NINkNNMk09u7HyXh/QY7KcYc/m35Gs UZA9uceIf9/ZFFdQckTSSogdchxEa0rzeKRSAcKyjPUrOdz20BvkMzMxa5LIe6haeUD1 1yK6KRqj6QhROVRQXTcvSwfVuF3CXNYg0o+CMHqmzqc2NjQ5uP2xMEhSi6L7SF6VHRUn q7VTK2BSHm5NeNl5ynl6wIS5knITzaPpqmI1VtD9dk7n6qiM325v/nJyw2pKKJrLqmUZ B49g== X-Gm-Message-State: AJcUukeTZmibWxx4WFddldjulx9HbySxkoMJTzvC0mvkUpk1I6zULz7J jL8bQe1gAGALUkhOzuEltxiXQQ== X-Google-Smtp-Source: ALg8bN4Kdm9B754Go9f65rQc6sORKKxvLrnUiQcHVi+BNpaxvTXXqnI6EOgX9TdTTI5YZl4+V5bOoA== X-Received: by 2002:a6b:6203:: with SMTP id f3mr46057785iog.36.1546870414063; Mon, 07 Jan 2019 06:13:34 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id t194sm29793690iof.3.2019.01.07.06.13.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 06:13:33 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 7F506800FD3; Mon, 7 Jan 2019 08:13:32 -0600 (CST) Date: Mon, 7 Jan 2019 08:13:32 -0600 From: Justin Pryzby To: David Rowley Cc: Amit Langote , "Imai, Yoshikazu" , Alvaro Herrera , PostgreSQL-development Subject: Re: speeding up planning with partitions Message-ID: <20190107141332.GT25379@telsasoft.com> References: <73596f90-023c-c358-be9a-3c21bffcb15d@lab.ntt.co.jp> <0F97FA9ABBDBE54F91744A9B37151A5122E7B1@g01jpexmbkw24> <08a6775f-7c88-81a8-8c2c-984d171b6db9@lab.ntt.co.jp> <0F97FA9ABBDBE54F91744A9B37151A51232FF7@g01jpexmbkw24> <0F97FA9ABBDBE54F91744A9B37151A5124C0A0@g01jpexmbkw24> <580ddb99-cd31-096d-d485-fc309d274498@lab.ntt.co.jp> <55bd88c6-f311-2791-0a36-11c693c69753@lab.ntt.co.jp> <20190103153900.GA6236@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jan 07, 2019 at 09:40:50PM +1300, David Rowley wrote: > On Fri, 4 Jan 2019 at 04:39, Justin Pryzby wrote: > > Running 11dev with your v10 patch applied, this takes 2244ms with empty buffer > > cache after postmaster restarted on a totally untuned instance (and a new > > backend, with no cached opened files). > > > > I was curious why it took even 2sec, and why it did so many opens() (but not > > 20k of them that PG11 does): > > It would be pretty hard to know that without seeing the query plan. The issue was this: > > It turns out 1050 open()s are due to historic data which is no longer being > > loaded and therefor never converted to relkind=p (but hasn't exceeded the > > retention interval so not yet DROPped, either). So there's no evidence of any issue with the patch. Justin