diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-10-20 19:18:18 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-10-20 19:18:18 +0000 |
commit | 06da3c570f21394003fc392d80f54862f7dec19f (patch) | |
tree | 2e4c5dc1cb78d87e12fc1495b084bfaf5e69e737 /src/backend/access/gist/gistget.c | |
parent | 3afffbc902f16f5b9abd2464a2bbc17d9bc63316 (diff) | |
download | postgresql-06da3c570f21394003fc392d80f54862f7dec19f.tar.gz |
Rework subtransaction commit protocol for hot standby.
This patch eliminates the marking of subtransactions as SUBCOMMITTED in pg_clog
during their commit; instead they remain in-progress until main transaction
commit. At main transaction commit, the commit protocol is atomic-by-page
instead of one transaction at a time. To avoid a race condition with some
subtransactions appearing committed before others in the case where they span
more than one pg_clog page, we conserve the logic that marks them subcommitted
before marking the parent committed.
Simon Riggs with minor help from me
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions