Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYi8i-0004JM-NL for pgsql-general@arkaria.postgresql.org; Tue, 09 Jan 2018 00:51:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYi8g-0005Zh-Mh for pgsql-general@arkaria.postgresql.org; Tue, 09 Jan 2018 00:51:38 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eYi8g-0005ZX-CA for pgsql-general@lists.postgresql.org; Tue, 09 Jan 2018 00:51:38 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eYi8c-0002qh-OQ for pgsql-general@postgresql.org; Tue, 09 Jan 2018 00:51:37 +0000 Received: by mail-pg0-x242.google.com with SMTP id d6so5732973pgv.2 for ; Mon, 08 Jan 2018 16:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=mYNwDzPpPnCJAJHGw/DlzXmRucK8rjubjFp143Oybog=; b=RyCi06oVvykYOla+AhiCZYyWmOTyWhbwPTOclT2fcevHqnTxt5dRGWHxl18eDAOzGZ ikpuKSA/OxbcAOQYRhcwDcPrA0FWH6X9Z6CXegVvW7eAAcF7bsgzdbT2zTMNG5VjpLEK Nvdz4g9fQA0aIfNkNkhkiYG7gZ4imo4AhdAlkcEcRTXYfDYQ9NaFS5ZPRC52GoM0bLhu gdQR416LTbbRuL5hhFJXDp5TwyCQoKxoQB4Y6vFHvlLE7hRwn/psVV7uHblWfQgw2BEu KivsQyq09p3VHKemeNs/c/Zuut+PHXdMj6R6pJ1UHlDKzjZFQ+r7bZ0o3VIJ2hdnqKQb 9UTg== 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; bh=mYNwDzPpPnCJAJHGw/DlzXmRucK8rjubjFp143Oybog=; b=Yil/VfRSJszt3cKQHDLHlWTu/1FpMuOI4jG1Ljd5hw+W0DkMc5D1JHT8ILekGm+T55 +RYHDv8z3h43DZRqOigmyUMeiizka1T+tPGcv0E+Vucm2aUIOzSosBdiAu591zUtGn0X Jnsbrt91om3Mzv66Z0ULT8Wr5jl/2B13ayBDVRcf9WspunNFpmOpApR8XaqlI/xAUrjf XkEd2uAaPROEJqevMJByOvS+xzH9btTHRPwuauazQcU+tCKDoPXci34lq9pYI/3jabqs iLkNzlJN7xXrFYxWPN4jKuZkZ66jg9AL7wTDpjP2wOhnkrTtB93YFwX9CBcDDtfyPu4+ deQw== X-Gm-Message-State: AKGB3mLdmHP6Mf9uYfdf5MyCOHsdlSZ+VUaS4+TVdJ+GSGEGg74dzTrC NF/LGateHZ5+7JwVKqruTz8= X-Google-Smtp-Source: ACJfBouDXbfEym0anOfTEwRZyTqUqVui5DXShKtkdD+ZIGb98h5zPU72TjtDWT76pmDyNviPfV2n+w== X-Received: by 10.84.131.66 with SMTP id 60mr13801257pld.122.1515459091895; Mon, 08 Jan 2018 16:51:31 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id y5sm29541411pfd.63.2018.01.08.16.51.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2018 16:51:30 -0800 (PST) Date: Tue, 9 Jan 2018 09:51:27 +0900 From: Michael Paquier To: Rakesh Kumar Cc: "Kumar, Virendra" , "pgsql-general@postgresql.org" Subject: Re: How Many Partitions are Good Performing Message-ID: <20180109005021.GD76418@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pyE8wggRBhVBcj8z" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --pyE8wggRBhVBcj8z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 09, 2018 at 12:54:18AM +0100, Rakesh Kumar wrote: > Can somebody tell us how many partitions are good number without > impacting the performance. We are hearing around a thousand, is that a > limit. Do we have plan to increase the number of partitions for a > table. We would appreciate if somebody can help us with this? What matters here is that the bottleneck comes from the planner which uses basically a O(N^2) algorithm to evaluate all the partitions, so a too high number causes planning time to increase dramatically. In Postgres 11, things get improved with more partition-wise logics. -- Michael --pyE8wggRBhVBcj8z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpUEg4ACgkQnvQgOdby QH2G1w//d/y6v80vsIDOstR0ti5s2DfMgBV94zhZCzCE/A1amfCDgdulwmwBRPHn WH+tjvOZGeFn+oop7rHk/lyFfa4op5eMOwIPyvwGgOfPF1BYVxcoTnTripT7SdQj tbGkwh4pprpQqSQ/Z1vEmZP8LMPSgQbE2kMSniqfRtDqY4hvZSYbzPEk6EK5aeGZ BpXu1pQs6/50M38fqk2tvYhOPbUewlWDdI5CTJT5KPatkNNIGCITrnVxgHA+UfO3 kRbQOGgnUj6+QWeKalXFuzSk+1M90YIjLUw/iH8tDTgxNbwbrjHHF9uq6x6zDMz6 qDiitV/yZOHP5vJtzLo3Se/gkNoIRpzseSuEmVbOm7Re1As+llN1gGCyn+KefHof +CUGs0Vkyl6rZzC1Nw87pVtO+7w+0NyVDTxEIE0jhcg+s+vc/6gkPk6HTcryBMM5 dKCXyHftV6jnt0zmcJJ7e5NqpOUc+eTaMWOfXkBwNiEjWl5qzZDjaXcTEay6mno2 pfDIcPj/pj61P2+JnzOcBmvm/Q/6Mik2xxYUktbXjxXprtr5wR77I1+jBvjCF1zh qaee+ZK4Fgj3evv2frO/jX0+1hh1/TI1ACYRBbdXFkXQgFuLBWsKK6shUZFYOFMI Oy5LVkjbDk/vLuAVgLK4rGTOQNXVKB0dL1BLG5GwXEw7Y9FEnGc= =8r3o -----END PGP SIGNATURE----- --pyE8wggRBhVBcj8z--