git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 95c7bff) | patch
Remove explicit FreeExprContext calls during plan node shutdown. The
2005年4月23日 21:32:34 +0000 (21:32 +0000)
2005年4月23日 21:32:34 +0000 (21:32 +0000)
commit 9b5b9616f49e0da74d227019e1ce20e73980dcb8
Remove explicit FreeExprContext calls during plan node shutdown. The
ExprContexts will be freed anyway when FreeExecutorState() is reached,
and letting that routine do the work is more efficient because it will
automatically free the ExprContexts in reverse creation order. The
existing coding was effectively freeing them in exactly the worst
possible order, resulting in O(N^2) behavior inside list_delete_ptr,
which becomes highly visible in cases with a few thousand plan nodes.

ExecFreeExprContext is now effectively a no-op and could be removed,
but I left it in place in case we ever want to put it back to use.
src/backend/executor/execUtils.c diff | blob | blame | history
src/backend/executor/nodeBitmapIndexscan.c diff | blob | blame | history
src/backend/executor/nodeIndexscan.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /