Re: Pruning never visible changes
От | Simon Riggs |
---|---|
Тема | Re: Pruning never visible changes |
Дата | |
Msg-id | CANbhV-Fm34tB4z5B2EE7Mpna_2TJ82gyD2PRaYsKPrfQGVMsSQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Pruning never visible changes (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Pruning never visible changes
|
Список | pgsql-hackers |
On Fri, 16 Sept 2022 at 15:26, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > Simon Riggs <simon.riggs@enterprisedb.com> writes: > > A user asked me whether we prune never visible changes, such as > > BEGIN; > > INSERT... > > UPDATE.. (same row) > > COMMIT; > > Didn't we just have this discussion in another thread? Not that I was aware of, but it sounds like a different case anyway. > You cannot > do that, at least not without checking that the originating > transaction has no snapshots that could see the older row version. I'm saying this is possible only AFTER the end of the originating xact, so there are no issues with additional snapshots. i.e. the never visible row has to be judged RECENTLY_DEAD before we even check. -- Simon Riggs http://www.EnterpriseDB.com/
В списке pgsql-hackers по дате отправления: