From: | "Kato, Sho" <kato-sho(at)jp(dot)fujitsu(dot)com> |
---|---|
To: | 'David Rowley' <david(dot)rowley(at)2ndquadrant(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | RE: Why does not subquery pruning conditions inherit to parent query? |
Date: | 2019-06-06 07:47:07 |
Message-ID: | 25C1C6B2E7BE044889E4FE8643A58BA97264D26A@G01JPEXMBKW03 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Friday, May 31, 2019 9:33 PM, David Rowley wrote:
> On Fri, 31 May 2019 at 03:18, Kato, Sho <kato-sho(at)jp(dot)fujitsu(dot)com> wrote:
> > Is it possible to improve a subquery quals to pull up into outer query?
>
> Sure, it's possible, but it would require writing code. When it can and
> cannot/should not be done would need to be determined.
Is there any harmful effect by pulling up a subquery quals into outer query?
Even if this feature is not be needed, it will be a problem if user execute this query to a table partitioned into a lot.
So, I think it would be better to put together a query that partition pruning does not work on the wiki.
Thoughts?
Regards,
kato sho
> -----Original Message-----
> From: David Rowley [mailto:david(dot)rowley(at)2ndquadrant(dot)com]
> Sent: Friday, May 31, 2019 9:33 PM
> To: Kato, Sho/加藤 翔 <kato-sho(at)jp(dot)fujitsu(dot)com>
> Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>; pgsql-hackers(at)postgresql(dot)org
> Subject: Re: Why does not subquery pruning conditions inherit to parent
> query?
>
> On Fri, 31 May 2019 at 03:18, Kato, Sho <kato-sho(at)jp(dot)fujitsu(dot)com> wrote:
> > Is it possible to improve a subquery quals to pull up into outer query?
>
> Sure, it's possible, but it would require writing code. When it can and
> cannot/should not be done would need to be determined.
>
> --
> David Rowley http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Dent John | 2019-06-06 08:07:06 | Use of reloptions by EXTENSIONs |
Previous Message | Matsumura, Ryo | 2019-06-06 07:38:34 | Bug: ECPG: Cannot use CREATE AS EXECUTE statemnt |