Re: queryId constant squashing does not support prepared statements - Mailing list pgsql-hackers

From Sami Imseih
Subject Re: queryId constant squashing does not support prepared statements
Date
Msg-id CAA5RZ0sW6Qq91AAn4zLoK9+XgcE5KFmgtk64xpN_xAfqDqb=Ng@mail.gmail.com
Whole thread Raw
In response to Re: queryId constant squashing does not support prepared statements  (Álvaro Herrera <alvherre@kurilemu.de>)
List pgsql-hackers
> I've spent a bunch of time looking at this series and here's my take on
> the second one.

Thanks!

> I realized that the whole in_expr production in gram.y is pointless, and
> the whole private struct that was added was unnecessary.  A much simpler
> solution is to remove in_expr, expand its use in a_expr to the two
> possibilities, and with that we can remove the need for a new struct.

Nice simplification.

> I also added a recursive call in IsSquashableExpression to itself.  The

I agree with this. I was thinking about a follow-up patch for this based on
the discussion above, but why not just add it now.

> Barring objections, I'll push this soon, then look at rebasing 0003 on
> top, which I expect to be an easy job.

LGTM.

--
Sami



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: strange perf regression with data checksums
Next
From: Tomas Vondra
Date:
Subject: Re: Amcheck verification of GiST and GIN