postgresql/src/include/storage
Alvaro Herrera 5da9da71c4 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.
2008-05-12 20:02:02 +00:00
..
backendid.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
block.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
buf.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
buf_internals.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
buffile.h Provide a build-time option to store large relations as single files, rather 2008-03-10 20:06:27 +00:00
bufmgr.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
bufpage.h Put back bufmgr.h in bufpage.h -- it is needed by some macros. 2008-05-12 16:06:10 +00:00
fd.h Provide a build-time option to store large relations as single files, rather 2008-03-10 20:06:27 +00:00
freespace.h Reduce memory consumption during VACUUM of large relations, by using 2008-03-10 02:04:10 +00:00
ipc.h Repair two places where SIGTERM exit could leave shared memory state 2008-04-16 23:59:40 +00:00
item.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
itemid.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
itempos.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
itemptr.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
large_object.h Separate snapshot management code from tuple visibility code, create a 2008-03-26 16:20:48 +00:00
lmgr.h Restructure some header files a bit, in particular heapam.h, by removing some 2008-05-12 00:00:54 +00:00
lock.h Restructure some header files a bit, in particular heapam.h, by removing some 2008-05-12 00:00:54 +00:00
lwlock.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
off.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pg_sema.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pg_shmem.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pmsignal.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
pos.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
proc.h Revert addition of pg_terminate_backend() because of race conditions. 2008-04-15 20:28:47 +00:00
procarray.h Improve snapshot manager by keeping explicit track of snapshots. 2008-05-12 20:02:02 +00:00
relfilenode.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
s_lock.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
shmem.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
sinval.h Modify interactions between sinval.c and sinvaladt.c. The code that actually 2008-03-16 19:47:34 +00:00
sinvaladt.h Move ProcState definition into sinvaladt.c from sinvaladt.h, since it's not 2008-03-17 11:50:27 +00:00
smgr.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
spin.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00