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

pgsql: Correctly init/deinit recovery xact environment.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Correctly init/deinit recovery xact environment.
Date: 2012-11-29 23:53:31
Message-ID: E1TeDv9-00037h-UY@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Correctly init/deinit recovery xact environment.
Previously we performed VirtualXactLockTableInsert
but didn't set MyProc->lxid for Startup process.
pg_locks now correctly shows "1/1" for vxid
of Startup process during Hot Standby.
At end of Hot Standby the Virtual Transaction
was not deleted, leading to problems after
promoting to normal running for some commands,
such as CREATE INDEX CONCURRENTLY.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f4a3e679306ebfbd150d8af3cdd481bea1619c52

Modified Files
--------------
src/backend/storage/ipc/standby.c |    9 ++++++++-
src/backend/storage/lmgr/lmgr.c   |   18 ++++++++++++++++++
src/include/storage/lmgr.h        |    1 +
3 files changed, 27 insertions(+), 1 deletions(-)


pgsql-committers by date

Next:From: Tom LaneDate: 2012-11-30 00:16:14
Subject: Re: Overlength socket paths (was Re: [COMMITTERS] pgsql: Refactor flex and bison make rules)
Previous:From: Andrew DunstanDate: 2012-11-29 23:31:23
Subject: Re: Overlength socket paths (was Re: [COMMITTERS] pgsql: Refactor flex and bison make rules)

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