postgresql/src/backend/access
Tom Lane e85a01df67 Clean up the representation of special snapshots by including a "method
pointer" in every Snapshot struct.  This allows removal of the case-by-case
tests in HeapTupleSatisfiesVisibility, which should make it a bit faster
(I didn't try any performance tests though).  More importantly, we are no
longer violating portable C practices by assuming that small integers are
distinct from all pointer values, and HeapTupleSatisfiesDirty no longer
has a non-reentrant API involving side-effects on a global variable.

There were a couple of places calling HeapTupleSatisfiesXXX routines
directly rather than through the HeapTupleSatisfiesVisibility macro.
Since these places had to be changed anyway, I chose to make them go
through the macro for uniformity.

Along the way I renamed HeapTupleSatisfiesSnapshot to HeapTupleSatisfiesMVCC
to emphasize that it's only used with MVCC-type snapshots.  I was sorely
tempted to rename HeapTupleSatisfiesVisibility to HeapTupleSatisfiesSnapshot,
but forebore for the moment to avoid confusion and reduce the likelihood that
this patch breaks some of the pending patches.  Might want to reconsider
doing that later.
2007-03-25 19:45:14 +00:00
..
common Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). 2007-02-27 23:48:10 +00:00
gin Fix a few typos in comments in GiN. 2007-02-01 04:16:08 +00:00
gist Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
hash Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
heap Clean up the representation of special snapshots by including a "method 2007-03-25 19:45:14 +00:00
index Refactor the index AM API slightly: move currentItemData and 2007-01-20 18:43:35 +00:00
nbtree Clean up the representation of special snapshots by including a "method 2007-03-25 19:45:14 +00:00
transam Arrange for PreventTransactionChain to reject commands submitted as part 2007-03-22 19:55:04 +00:00
Makefile Replace useless uses of := by = in makefiles. 2007-02-09 15:56:00 +00:00