- Notifications
You must be signed in to change notification settings - Fork5
Commit37e0a01
committed
Save a few cycles in plpgsql simple-expression initialization.
Instead of using ExecPrepareExpr, call ExecInitExpr. The net change hereis that we don't apply expression_planner() to the expression tree. Thereis no need to do so, because that tree is extracted from a fully plannedplancache entry, so all the needed work is already done. This reducesthe setup costs by about a factor of 2 according to some simple tests.Oversight noted while fooling around with the simple-expression code forprevious fix.1 parent8ce22dd commit37e0a01
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4577 | 4577 | | |
4578 | 4578 | | |
4579 | 4579 | | |
4580 | | - | |
4581 | | - | |
| 4580 | + | |
| 4581 | + | |
4582 | 4582 | | |
4583 | 4583 | | |
| 4584 | + | |
4584 | 4585 | | |
4585 | 4586 | | |
4586 | 4587 | | |
| |||
0 commit comments
Comments
(0)