|
32 | 32 | * Portions Copyright (c) 1994, Regents of the University of California |
33 | 33 | * |
34 | 34 | * IDENTIFICATION |
35 | | - * $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.96 2006/09/03 15:59:39 tgl Exp $ |
| 35 | + * $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.97 2006/09/15 16:39:32 tgl Exp $ |
36 | 36 | * |
37 | 37 | *------------------------------------------------------------------------- |
38 | 38 | */ |
@@ -253,19 +253,18 @@ HeapTupleSatisfiesItself(HeapTupleHeader tuple, Buffer buffer) |
253 | 253 | * |
254 | 254 | * The satisfaction of "now" requires the following: |
255 | 255 | * |
256 | | - * ((Xmin == my-transaction && changed by the current transaction |
257 | | - * Cmin != my-command && but not by this command, and |
258 | | - * (Xmax is null || the row has not been deleted, or |
259 | | - * (Xmax == my-transaction && it was deleted by the current transaction |
260 | | - * Cmax != my-command))) but not by this command, |
| 256 | + * ((Xmin == my-transaction && inserted by the current transaction |
| 257 | + * Cmin < my-command && before this command, and |
| 258 | + * (Xmax is null || the row has not been deleted, or |
| 259 | + * (Xmax == my-transaction && it was deleted by the current transaction |
| 260 | + * Cmax >= my-command))) but not before this command, |
261 | 261 | * || or |
262 | | - * |
263 | | - * (Xmin is committed && the row was modified by a committed transaction, and |
| 262 | + * (Xmin is committed && the row was inserted by a committed transaction, and |
264 | 263 | * (Xmax is null || the row has not been deleted, or |
265 | | - * (Xmax == my-transaction && the row is being deleted by this command, or |
266 | | - * Cmax == my-command) || |
267 | | - * (Xmax is not committed && the row was deleted by another transaction |
268 | | - * Xmax != my-transaction)))) that has not been committed |
| 264 | + * (Xmax == my-transaction && the row is being deleted by this transaction |
| 265 | + * Cmax >= my-command) || but it's not deleted "yet", or |
| 266 | + * (Xmax != my-transaction && the row was deleted by another transaction |
| 267 | + * Xmax is not committed)))) that has not been committed |
269 | 268 | * |
270 | 269 | * mao says 17 march 1993: the tests in this routine are correct; |
271 | 270 | * if you think they're not, you're wrong, and you should think |
|
0 commit comments