Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
0498a08e
Commit
0498a08e
authored
18 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Improve confusing comment for HeapTupleSatisfiesNow, per gripe from Greg Stark.
parent
fa6f9cea
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/utils/time/tqual.c
+11
-12
11 additions, 12 deletions
src/backend/utils/time/tqual.c
with
11 additions
and
12 deletions
src/backend/utils/time/tqual.c
+
11
−
12
View file @
0498a08e
...
...
@@ -32,7 +32,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.9
6
2006/09/
03 15:5
9:3
9
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.9
7
2006/09/
15 16:3
9:3
2
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -253,19 +253,18 @@ HeapTupleSatisfiesItself(HeapTupleHeader tuple, Buffer buffer)
*
* The satisfaction of "now" requires the following:
*
* ((Xmin == my-transaction &&
chang
ed by the current transaction
* Cmin
!=
my-command && b
ut not by
this command, and
* ((Xmin == my-transaction &&
insert
ed by the current transaction
* Cmin
<
my-command && b
efore
this command, and
* (Xmax is null || the row has not been deleted, or
* (Xmax == my-transaction && it was deleted by the current transaction
*
Cmax
!
= my-command))) but not b
y
this command,
*
Cmax
>
= my-command))) but not b
efore
this command,
* || or
*
* (Xmin is committed && the row was modified by a committed transaction, and
* (Xmin is committed && the row was inserted by a committed transaction, and
* (Xmax is null || the row has not been deleted, or
*
(Xmax == my-transaction && the row is being deleted by this
command, or
*
Cmax
=
= my-command) ||
*
(Xmax
is not committed
&& the row was deleted by another transaction
*
Xmax
!= my-transaction
)))) that has not been committed
*
(Xmax == my-transaction && the row is being deleted by this
transaction
*
Cmax
>
= my-command) ||
but it's not deleted "yet", or
*
(Xmax
!= my-transaction
&& the row was deleted by another transaction
*
Xmax
is not committed
)))) that has not been committed
*
* mao says 17 march 1993: the tests in this routine are correct;
* if you think they're not, you're wrong, and you should think
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment