Filter:

Commits on September 28, 2003

Commits3 commits
0Author
3Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterRestructure plpgsql's caching of 'simple' expression evaluation trees to be less dangerous, and often faster as well. ExprState trees are not kept across transaction boundaries; this eliminates problems with resource leakage in failed transactions. But by keeping them in a per-transaction EState, we can safely arrange for a single ExprState to be shared by all the expression evaluations done in a given plpgsql function call. (Formerly it seemed necessary to create and destroy an ExprState for each exec_eval_simple_expr() call.) This saves time in any scenario where a plpgsql function executes more than one expression. Seems to be about as fast as 7.3 for simple cases, and significantly faster for functions that do a lot of calculations.
8b510838
master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more
No linked threadSep 28, 2003
CommitterAdd a mechanism to let dynamically loaded modules register post-commit/ post-abort cleanup hooks. I'm surprised that we have not needed this already, but I need it now to fix a plpgsql problem, and the usefulness for other dynamically loaded modules seems obvious.
89347900
master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more
No linked threadSep 28, 2003
CommitterNow that we have UPDATE tab SET col = DEFAULT, get rid of horrid hack in the RI triggers for ON DELETE/UPDATE SET DEFAULT. The code depended way too much on knowledge of plan structure, and yet still would fail if the generated query got rewritten by rules.
a15207f8
master7.4beta4REL_19_STABLE7.4beta4REL_18_STABLE7.4beta4REL_17_STABLE7.4beta4REL_16_STABLE7.4beta4REL_15_STABLE7.4beta4REL_14_STABLE7.4beta4REL_13_STABLE7.4beta4+21 more
No linked threadSep 28, 2003