Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHE8a-0004Rs-7J for pgsql-general@arkaria.postgresql.org; Tue, 21 Nov 2017 19:23:16 +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 1eHE8Z-0003eD-KK for pgsql-general@arkaria.postgresql.org; Tue, 21 Nov 2017 19:23:15 +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 1eHE8Z-0003e3-Ef for pgsql-general@lists.postgresql.org; Tue, 21 Nov 2017 19:23:15 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eHE8P-0005dm-Bf for pgsql-general@postgresql.org; Tue, 21 Nov 2017 19:23:14 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id DAB3E991C732 for ; Tue, 21 Nov 2017 12:23:02 -0700 (MST) Date: Tue, 21 Nov 2017 12:23:02 -0700 (MST) From: legrand legrand To: pgsql-general@postgresql.org Message-ID: <1511292182893-0.post@n3.nabble.com> In-Reply-To: References: <1511218442722-0.post@n3.nabble.com> Subject: Re: One Partition by list is always chosen by planner MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk yes it is show constraint_exclusion partition and if I explain the same query with an other filter explain select * from wiki_data_part where category='fr' | Append (cost=0.00..14010.76 rows=291609 width=48) | -> Seq Scan on wiki_data_part_f (cost=0.00..9975.04 rows=291339 width=48) | Filter: ((category)::text = 'fr'::text) | -> Seq Scan on wiki_data_part_s (cost=0.00..4035.72 rows=270 width=50) | Filter: ((category)::text = 'fr'::text) wiki_data_part_s is always chosen in the plan -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html