git.postgresql.org Git - postgresql.git/commit
2008年5月12日 20:02:02 +0000 (20:02 +0000)
2008年5月12日 20:02:02 +0000 (20:02 +0000)
commit 5da9da71c44f27ba48fdad08ef263bf70e43e689
Improve snapshot manager by keeping explicit track of snapshots.
There are two ways to track a snapshot: there's the "registered" list, which
is used for arbitrary long-lived snapshots; and there's the "active stack",
which is used for the snapshot that is considered "active" at any time.
This also allows users of snapshots to stop worrying about snapshot memory
allocation and freeing, and about using PG_TRY blocks around ActiveSnapshot
assignment. This is all done automatically now.
As a consequence, this allows us to reset MyProc->xmin when there are no
more snapshots registered in the current backend, reducing the impact that
long-running transactions have on VACUUM.
27 files changed:
This is the main PostgreSQL git repository.
RSS
Atom