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 1hxFdp-0005rO-DW for pgsql-performance@arkaria.postgresql.org; Mon, 12 Aug 2019 19:06: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 1hxFdo-0000Uk-4g for pgsql-performance@arkaria.postgresql.org; Mon, 12 Aug 2019 19:06:00 +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 1hxFdn-0000Ud-O6 for pgsql-performance@lists.postgresql.org; Mon, 12 Aug 2019 19:05:59 +0000 Received: from mail-yw1-xc36.google.com ([2607:f8b0:4864:20::c36]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hxFdj-0004b0-Kq for pgsql-performance@lists.postgresql.org; Mon, 12 Aug 2019 19:05:58 +0000 Received: by mail-yw1-xc36.google.com with SMTP id m11so865569ywh.3 for ; Mon, 12 Aug 2019 12:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=entrata-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0b/KsIdG+yGVfkkQEadvaTgMKz4LFabX2n6DgydGNDE=; b=AMsTGX0WNFIiQ3A4hWtX3qqaa86ByJdP77to2e4BR+3tTAba8BT9V1/9iHPq0+xQSk JwltpaRgmxUuL2PPqxzg/lbdMoRtGCAZ4y146QjuH8tHfsCCorYUAqie8BLp6UoP53/R +ZNAv5MV1We3AYSgqVA3nUcGOU4Axuyiy49/2wmdcZS0VFechjlG3KtjxQFpVnVNrezB ryUDiT58Rv83JgAbGWGYK5Qf0Ba0LcvtcQe712M/CO3bAcMhhpmid8NLdiKAg/FkbLGu IFfWYEh2qBmYNoumjYxlpGfjrinQkiUywpG1JTrv61BJdAQpM/ixBhRNqZGkQzDKYzzL 4nfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0b/KsIdG+yGVfkkQEadvaTgMKz4LFabX2n6DgydGNDE=; b=J1ON/GQkn8Fi96sG5+z2pnDfojprSiMq6dMKhnrzcoCCQmo7jgK17Kuzlx57smvpbc Z7763qejysi1sDsDLrB+udJ00yYXpxDrcStSfgUWMOFwvmRsx1cFRUrkydO6N01kNmXD TB9RteSBryuYE3sHyKSoKo6IbnFKmOzdkJjunmhv8rS7woEicMHhOey+nwRen880tAv6 /N+fsIHiE+GwS5bFcF0j50j5Itq3FY5SZs8XrzJz/ETH9p6QKSX/v+AiPNlXNh8U0QIQ 54j3ueu2Qi1R1YKEapdEV5XRfXRQ6o1bLfFsSLqaW877MVWhhIX5rnDEbyvpkCJ1KE78 LYmw== X-Gm-Message-State: APjAAAVkc2VHOXYRbyYfNVVSqxzUNsTc1LlyR3shJIfkoB1eU6pxP6aE BXuZQWzfL6A3GeILKGzXictsH3n/wKLAW7WPumsD/x9MREp55A== X-Google-Smtp-Source: APXvYqxiTGPas0WSAmkq9CVCsIvvTvO6twHIgT3Kn471zKs8VdJGma3R6rRoZklrAGXi3kpjI3D08OXeoBM8eSG2gkI= X-Received: by 2002:a81:3945:: with SMTP id g66mr21315536ywa.368.1565636752180; Mon, 12 Aug 2019 12:05:52 -0700 (PDT) MIME-Version: 1.0 References: <5675f9f771f04d9f8b5cffe16f4a4175@EX13MBX02.gb.ad.corp> In-Reply-To: <5675f9f771f04d9f8b5cffe16f4a4175@EX13MBX02.gb.ad.corp> From: Michael Lewis Date: Mon, 12 Aug 2019 13:05:25 -0600 Message-ID: Subject: Re: Planner performance in partitions To: =?UTF-8?Q?Piotr_W=C5=82odarczyk?= Cc: "pgsql-performance@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000007620f2058ff03697" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000007620f2058ff03697 Content-Type: text/plain; charset="UTF-8" "It is also important to consider the overhead of partitioning during query planning and execution. The query planner is generally able to handle partition hierarchies with *up to a few hundred partitions fairly well*, provided that typical queries allow the query planner to prune all but a small number of partitions. Planning times become longer and memory consumption becomes higher as more partitions are added." (emphasis added) --https://www.postgresql.org/docs/current/ddl-partitioning.html --0000000000007620f2058ff03697 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
"It is also important to consider the overhead o= f partitioning during query planning and execution. The query planner is ge= nerally able to handle partition hierarchies with up to a few hundred= partitions fairly well, provided that typical queries allow the qu= ery planner to prune all but a small number of partitions. Planning times b= ecome longer and memory consumption becomes higher as more partitions are a= dded." (emphasis added)
--0000000000007620f2058ff03697--