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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 82f8107) | patch
Fix possible crash reading pg_stat_activity.
Thu, 5 Jan 2017 17:27:09 +0000 (12:27 -0500)
Thu, 5 Jan 2017 17:27:09 +0000 (12:27 -0500)
commit 175ff6598e014b2fe84c06fa443161294fc2eed0
Fix possible crash reading pg_stat_activity.

With the old code, a backend that read pg_stat_activity without ever
having executed a parallel query might see a backend in the midst of
executing one waiting on a DSA LWLock, resulting in a crash. The
solution is for backends to register the tranche at startup time, not
the first time a parallel query is executed.

Report by Andreas Seltenreich. Patch by me, reviewed by Thomas Munro.
src/backend/executor/execParallel.c diff | blob | blame | history
src/backend/storage/lmgr/lwlock.c diff | blob | blame | history
src/backend/utils/mmgr/dsa.c diff | blob | blame | history
src/include/utils/dsa.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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