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 1hsTCu-0005Ot-3j for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Jul 2019 14:34:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hsTCs-0003pW-PL for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Jul 2019 14:34:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hsTCs-0003pP-EV for pgsql-bugs@lists.postgresql.org; Tue, 30 Jul 2019 14:34:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hsTCq-0006ni-9C for pgsql-bugs@lists.postgresql.org; Tue, 30 Jul 2019 14:34:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x6UEYLKO012155; Tue, 30 Jul 2019 10:34:21 -0400 From: Tom Lane To: damir.ciganovic.jankovic@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15933: Partition by multiple columns bug In-reply-to: <15933-e30a9940d35e6fcf@postgresql.org> References: <15933-e30a9940d35e6fcf@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 30 Jul 2019 07:53:20 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12153.1564497261.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 30 Jul 2019 10:34:21 -0400 Message-ID: <12154.1564497261@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > -- fourth query that completely fails to find partition > EXPLAIN ANALYZE SELECT * from my_table WHERE my_enum =3D 'FIRST' AND my_= time > > now(); > Result (cost=3D0.00..0.00 rows=3D0 width=3D16) (actual time=3D0.001..0.= 001 rows=3D0 > loops=3D1) > One-Time Filter: false > This seems like a bug to me. In v11 branch tip I get Append (cost=3D0.00..42.39 rows=3D3 width=3D16) (actual time=3D0.007..0.= 007 rows=3D0 loops=3D1) -> Seq Scan on my_table_first (cost=3D0.00..42.38 rows=3D3 width=3D16= ) (actual time=3D0.006..0.006 rows=3D0 loops=3D1) Filter: ((my_enum =3D 'FIRST'::enum1) AND (my_time > now())) and in HEAD it looks like Seq Scan on my_table_first (cost=3D0.00..42.38 rows=3D3 width=3D16) (act= ual time=3D0.007..0.007 rows=3D0 loops=3D1) Filter: ((my_enum =3D 'FIRST'::enum1) AND (my_time > now())) so evidently this is already fixed. regards, tom lane