pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: damir.ciganovic.jankovic@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15933: Partition by multiple columns bug
Date: Tue, 30 Jul 2019 10:34:21 -0400
Message-ID: <12154.1564497261@sss.pgh.pa.us> (raw)
In-Reply-To: <15933-e30a9940d35e6fcf@postgresql.org>
References: <15933-e30a9940d35e6fcf@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> -- fourth query that completely fails to find partition
> EXPLAIN ANALYZE SELECT * from my_table WHERE my_enum = 'FIRST' AND my_time >
> now();
> Result  (cost=0.00..0.00 rows=0 width=16) (actual time=0.001..0.001 rows=0
> loops=1)
>    One-Time Filter: false
> This seems like a bug to me.

In v11 branch tip I get

 Append  (cost=0.00..42.39 rows=3 width=16) (actual time=0.007..0.007 rows=0 loops=1)
   ->  Seq Scan on my_table_first  (cost=0.00..42.38 rows=3 width=16) (actual time=0.006..0.006 rows=0 loops=1)
         Filter: ((my_enum = 'FIRST'::enum1) AND (my_time > now()))

and in HEAD it looks like

 Seq Scan on my_table_first  (cost=0.00..42.38 rows=3 width=16) (actual time=0.007..0.007 rows=0 loops=1)
   Filter: ((my_enum = 'FIRST'::enum1) AND (my_time > now()))

so evidently this is already fixed.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <12154.1564497261@sss.pgh.pa.us>
Permalink:  ../12154.1564497261@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12154.1564497261@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, damir.ciganovic.jankovic@gmail.com
  Subject: Re: BUG #15933: Partition by multiple columns bug
  In-Reply-To: <12154.1564497261@sss.pgh.pa.us>
  References: <15933-e30a9940d35e6fcf@postgresql.org> <12154.1564497261@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox