[prev in list] [next in list] [prev in thread] [next in thread]
List: pgsql-bugs
Subject: Re: BUG #15933: Partition by multiple columns bug
From: Damir Ciganović-Janković <damir.ciganovic.jankovic () gmail
Date: 2019-07-31 5:26:15
Message-ID: CA+-2sJ7Sgb9pOkcf_bkj6uw6W-SdC8xVz0L-u2-72+a6ha_wOA () mail ! gmail ! com
[Download RAW message or body]
Hi, I tried it with 11.4 and it worked, thanks
Kind regards,
Damir
On Wed, Jul 31, 2019 at 6:58 AM Amit Langote <amitlangote09@gmail.com>
wrote:
> On Tue, Jul 30, 2019 at 11:34 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > 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.
>
> Yeah, I think we fixed this particular issue in 6630ccad7a [1] that
> appeared in the 11.4 release.
>
> Thanks,
> Amit
>
> [1]
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=6630ccad7a
>
[Attachment #3 (text/html)]
<div dir="ltr">Hi, I tried it with 11.4 and it worked, thanks \
<div><br></div><div>Kind regards,</div><div>Damir</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019 at 6:58 AM \
Amit Langote <<a href="mailto:amitlangote09@gmail.com">amitlangote09@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jul 30, 2019 \
at 11:34 PM Tom Lane <<a href="mailto:tgl@sss.pgh.pa.us" \
target="_blank">tgl@sss.pgh.pa.us</a>> wrote:<br> > PG Bug reporting form \
<<a href="mailto:noreply@postgresql.org" \
target="_blank">noreply@postgresql.org</a>> writes:<br> > > -- fourth query \
that completely fails to find partition<br> > > EXPLAIN ANALYZE SELECT * from \
my_table WHERE my_enum = 'FIRST' AND my_time ><br> > > now();<br>
> > Result (cost=0.00..0.00 rows=0 width=16) (actual time=0.001..0.001 \
rows=0<br> > > loops=1)<br>
> > One-Time Filter: false<br>
> > This seems like a bug to me.<br>
><br>
> In v11 branch tip I get<br>
><br>
> Append (cost=0.00..42.39 rows=3 width=16) (actual time=0.007..0.007 rows=0 \
loops=1)<br> > -> 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)<br> > Filter: \
((my_enum = 'FIRST'::enum1) AND (my_time > now()))<br> ><br>
> and in HEAD it looks like<br>
><br>
> 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)<br> > Filter: ((my_enum = \
'FIRST'::enum1) AND (my_time > now()))<br> ><br>
> so evidently this is already fixed.<br>
<br>
Yeah, I think we fixed this particular issue in 6630ccad7a [1] that<br>
appeared in the 11.4 release.<br>
<br>
Thanks,<br>
Amit<br>
<br>
[1] <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=6630ccad7a" \
rel="noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=6630ccad7a</a><br>
</blockquote></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic