Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csxLx-00039J-P5 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 20:04:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1csxLw-0003N9-Mp for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 20:04:28 +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 1csxKQ-0000jk-PV for pgsql-hackers@postgresql.org; Tue, 28 Mar 2017 20:02:54 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csxKK-0005Qz-1J for pgsql-hackers@postgresql.org; Tue, 28 Mar 2017 20:02:52 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id EEEA021C21FE; Tue, 28 Mar 2017 23:02:45 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from localhost (c-73-248-40-237.hsd1.nj.comcast.net [73.248.40.237]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 49A9421C1B21; Tue, 28 Mar 2017 23:02:45 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1490731365; bh=fTxRpK+iWNCxj0QCGMS3Tx2/Q8o57AMTf5dlbWWXJ9k=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=IUgWqSvupRE726ZEfkiggXW/bUjTrNw/wLHW7K8h1w2K8hHBAeSPjSz8l+Ks20tgv vCHdtGPNIGOz6TJy2geDsP59GN9chHYJBteoxDQWmp9K8zcjGLHT1LiO5rQPX7YiE4 uydfnU3pWlFomLKif4LZH3z5mWskB1ztayvqWq+o= Date: Tue, 28 Mar 2017 22:59:15 +0300 From: Aleksander Alekseev To: Robert Haas Cc: Teodor Sigaev , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Improve performance of find_all_inheritors() Message-ID: <20170328195914.GA2265@e733.localdomain> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Robert. > I'm a little worried that this will be noticeably slower when the > number of partitions is small, like 4 or 8 or 16. In other places, > we've found it necessary to support both a list-based strategy and a > hash-based strategy to avoid regressing small cases (e.g. > join_rel_list + join_rel_hash in PlannerInfo, ResourceArray in > resowner.c, etc). I've checked it [1]. Apparently in this particular case patches make code faster on small amount of partitions as well.=20 [1] https://postgr.es/m/20170324132258.GB16830%40e733.localdomain --=20 Best regards, Aleksander Alekseev --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEECAokn0QZCoIHW4GpEEnCBLXCDtYFAljawIsACgkQEEnCBLXC DtaI+Q/+MzlM46WpV3o4An+QcFUZZv0QW+0pd/NuiLnHiE768KxF96x4VJBV/qqW hKAdUVVi+V7ZP+teIUrdr+W8CVdtp1+lyQZ82LWBTsrBIbRt8xfRfwwFy1eQGtQz +85M4bnMtntvxWpSBwgEbeaq1X/CA77738MPO93t95ODtFaUWo7SaByH/zE9p3n/ VPhJ8aoKAyxU+XOJZqgCG1SSnVB9MNNQb/kA6l5e6uD/fCervufRoTAikkdvd0BW ZUHmDAwRijUFer85jCH9XXEYtUO1DKCHwo6DNjjbCqgwzS31P4fcACULcHJkbvfI i0Sm/WnPWtu7ON7eOdDaJ+5k3lagSBJARSiGQJzCpQ4ZzEyxlV3MjW36rMtI+OP9 uNNTKCd482Y2tHZbBtv+JenuwXD/EznJ5zW/M+7JfUBLKo8xGWnFD0robIebLrot 1/WqrcUYBlWOpHYMTRpdW56CgU5jHjPgympY22mDlN1sGVZObpprd3Mynu97PEYc tccpSzc8fVHUIpCzFu/2k8rbySLYDbdVtuHPx0KLLhohQF+o64UsREd7+J93LSr9 A2vNecf3MOLRVXVeYxXFYAWEam3H5WyZVJh4apyxwlCKJmMeUA/5/7IomTSDXXw/ soAiVwUQ3V1fYxA2jOhyo2v/PQ/uMnvl0X1vnF/ckAm9UDtCN3w= =Pzy9 -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--