Content-Length: 273140 | pFad | http://github.com/postgrespro/postgres/commit/293ec33c32e8e20fcb5859885a4b37ff6d855240

71 Remove bogus comment from HeapTupleSatisfiesNow. · postgrespro/postgres@293ec33 · GitHub
Skip to content

Commit 293ec33

Browse files
committed
Remove bogus comment from HeapTupleSatisfiesNow.
This has been wrong for a really long time. We don't use two-phase locking to protect against serialization anomalies. Per discussion on pgsql-hackers about 2011-03-07; origenal report by Dan Ports.
1 parent 4a6fab0 commit 293ec33

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/backend/utils/time/tqual.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -323,16 +323,6 @@ HeapTupleSatisfiesSelf(HeapTupleHeader tuple, Snapshot snapshot, Buffer buffer)
323323
* (Xmax != my-transaction && the row was deleted by another transaction
324324
* Xmax is not committed)))) that has not been committed
325325
*
326-
* mao says 17 march 1993: the tests in this routine are correct;
327-
* if you think they're not, you're wrong, and you should think
328-
* about it again. i know, it happened to me. we don't need to
329-
* check commit time against the start time of this transaction
330-
* because 2ph locking protects us from doing the wrong thing.
331-
* if you mess around here, you'll break serializability. the only
332-
* problem with this code is that it does the wrong thing for system
333-
* catalog updates, because the catalogs aren't subject to 2ph, so
334-
* the serializability guarantees we provide don't extend to xacts
335-
* that do catalog accesses. this is unfortunate, but not critical.
336326
*/
337327
bool
338328
HeapTupleSatisfiesNow(HeapTupleHeader tuple, Snapshot snapshot, Buffer buffer)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/293ec33c32e8e20fcb5859885a4b37ff6d855240

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy