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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e0bf160) | patch
Improve memory use in logical replication apply
Tue, 9 May 2017 18:40:42 +0000 (14:40 -0400)
Tue, 9 May 2017 18:51:49 +0000 (14:51 -0400)
commit 489b96e80b96c0eda02575347654e87968f2f5f4
Improve memory use in logical replication apply

Previously, the memory used by the logical replication apply worker for
processing messages would never be freed, so that could end up using a
lot of memory. To improve that, change the existing ApplyContext memory
context to ApplyMessageContext and reset that after every
message (similar to MessageContext used elsewhere). For consistency of
naming, rename the ApplyCacheContext to ApplyContext.

Author: Stas Kelvich <s.kelvich@postgrespro.ru>
src/backend/replication/logical/worker.c diff | blob | blame | history
src/backend/utils/mmgr/README diff | blob | blame | history
src/include/replication/worker_internal.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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