]> granicus.if.org Git - postgresql/commit
Correctly init/deinit recovery xact environment.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 29 Nov 2012 23:46:54 +0000 (23:46 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 29 Nov 2012 23:46:54 +0000 (23:46 +0000)
commitf4a3e679306ebfbd150d8af3cdd481bea1619c52
tree96476c97c567d3385c882c62561e652a4277e6f9
parent1dbd02dc37efb74b770aa834b2cb65dae2446640
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.
src/backend/storage/ipc/standby.c
src/backend/storage/lmgr/lmgr.c
src/include/storage/lmgr.h