Re: WIP: Faster Expression Processing v4
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, pgsql-hackers@postgresql.org
Date: 2017-03-20T04:16:21Z
Lists: pgsql-hackers
Hi, On 2017-03-19 23:55:50 -0400, Tom Lane wrote: > Andres Freund <andres@anarazel.de> writes: > > I've been pondering if we can't entirely get rid of CaseTest etc, the > > amount of hackery required seems not like a good thing. One way I'd > > prototyped was to replace them with PARAM_EXEC nodes - then the whole > > issue of them potentially having different values at different parts of > > an expression vanishes because the aliasing is removed. > > Yes, replacing all of that with Param slots had occurred to me too. > We might want to keep the special parse node types for convenience in > reverse-listing, but having them act just like PARAM_EXEC for execution > purposes seems promising. As long as that special parse-time node is part of the same value numbering, that makes sense (could just name make it a subtype of param ala PARAM_CASE). I don't think we actually do anything useful in ruleutils etc with either CaseTest or CoerceToDomainValue. - Andres
Commits
-
Improve performance of ExecEvalWholeRowVar.
- 2f0903ea1965 10.0 landed
-
Remove unreachable code in expression evaluation.
- ad46a2aa79f9 10.0 landed
-
Faster expression evaluation and targetlist projection.
- b8d7f053c5c2 10.0 landed
-
Avoid syntax error on platforms that have neither LOCALE_T nor ICU.
- 457a44487328 10.0 cited
-
Add configure test to see if the C compiler has gcc-style computed gotos.
- bc18126a6bcb 10.0 landed
-
Improve regression test coverage for TID scanning.
- be6c3d19fd45 10.0 landed
-
Improve expression evaluation test coverage.
- ce38949ba23a 10.0 landed
-
Fix two errors with nested CASE/WHEN constructs.
- f0c7b789ab12 9.6.0 cited