Re: Tuple visibility within a single XID - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Tuple visibility within a single XID
Date
Msg-id 4903.1428501755@sss.pgh.pa.us
Whole thread Raw
In response to Re: Tuple visibility within a single XID  (Qingqing Zhou <zhouqq.postgres@gmail.com>)
List pgsql-hackers
Qingqing Zhou <zhouqq.postgres@gmail.com> writes:
> Not sure if I understand correctly: in uniqueness check, we see all
> possible tuples with a dirty snapshot.  For a tuple version inserted
> and updated by myself, it is surely dead no matter how the transaction
> ends. So I interpret that we can safely pruning the version.

It may be dead in the future, but unless you can prove that your session
does not still contain a snapshot that could "see" the row, you can't
prune it.  Considering only the current query is a fundamental error.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Sawada Masahiko
Date:
Subject: Re: Proposal : REINDEX xxx VERBOSE
Next
From: Kevin Grittner
Date:
Subject: Re: Row security violation error is misleading