OSDN Git Service

pgstat's on-proc-exit hook has to execute after the last transaction commit
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 May 2007 05:37:50 +0000 (05:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 May 2007 05:37:50 +0000 (05:37 +0000)
commit8d675c85c58065076b673ea8ee61fa1285748ee3
treec7ac138248ac058c3f93f4dba27276e33958b5ef
parent77947c51c08179b8bc12347a7fbcb2c8d7908302
pgstat's on-proc-exit hook has to execute after the last transaction commit
or abort within a backend; rearrange InitPostgres processing to make it so.
Revealed by just-added Asserts along with ECPG regression tests (hm, I wonder
why the core regression tests didn't expose it?).  This possibly is another
reason for missing stats updates ...
src/backend/postmaster/pgstat.c
src/backend/utils/init/postinit.c
src/include/pgstat.h