Skip site navigation (1) Skip section navigation (2)

pgsql: pgstat's on-proc-exit hook has to execute after the last

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pgstat's on-proc-exit hook has to execute after the last
Date: 2007-05-27 05:37:50
Message-ID: 20070527053750.236339FB524@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
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 ...

Modified Files:
--------------
    pgsql/src/backend/postmaster:
        pgstat.c (r1.156 -> r1.157)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c.diff?r1=1.156&r2=1.157)
    pgsql/src/backend/utils/init:
        postinit.c (r1.175 -> r1.176)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/init/postinit.c.diff?r1=1.175&r2=1.176)
    pgsql/src/include:
        pgstat.h (r1.59 -> r1.60)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/pgstat.h.diff?r1=1.59&r2=1.60)

pgsql-committers by date

Next:From: Michael MeskesDate: 2007-05-27 11:16:41
Subject: pgsql: Applied Joachim's patch for ecpg_config.h creation on Vista.
Previous:From: Tom LaneDate: 2007-05-27 03:50:40
Subject: pgsql: Fix up pgstats counting of live and dead tuples to recognize that

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group