Re: Discussion on missing optimizations

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Adam Brusselback <adambrusselback(at)gmail(dot)com>, Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Andreas Seltenreich <seltenreich(at)gmx(dot)de>
Subject: Re: Discussion on missing optimizations
Date: 2017-10-12 09:05:50
Message-ID: 20171012090550.kezgt5slacterhlf@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund wrote:
> On 2017-10-08 11:28:09 -0400, Tom Lane wrote:
> > Adam Brusselback <adambrusselback(at)gmail(dot)com> writes:
> > > On another note:
> > >> turning ORs into UNIONs
> >
> > > This is another one which would be incredibly useful for me. I've had
> > > to do this manually for performance reasons far too often.
> >
> > Well, maybe you could sign up to help review the open patch for that then:
> > https://commitfest.postgresql.org/15/1001/
> >
> > The reason that's not in v10 is we haven't been able to convince
> > ourselves whether it's 100% correct.
>
> Unfortunately it won't help in this specific case (no support for UNION,
> just UNION ALL), but I thought it might be interesting to reference
> https://medium.com/@uwdb/introducing-cosette-527898504bd6
> here.

Interesting. I thought about a completely different approach -- use a
fuzzer, which runs each generated query on two servers, one patched one
not, and compare the results. Would it be possible to tweak sqlsmith to
do this?

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Arthur Zakirov 2017-10-12 09:15:43 Re: BUG #14850: Implement optinal additinal parameter for 'justify' date/time function
Previous Message Alvaro Herrera 2017-10-12 08:43:10 Re: replace GrantObjectType with ObjectType