Re: Question about initial logical decoding snapshot

2023-01-18 Thread shveta malik
Hello, I was curious as to why we need 3rd running_xact and wanted to learn more about it, so I have made a few changes to come up with a patch which builds the snapshot in 2 running_xacts. The motive is to run the tests to see the failures/issues with this approach to understand the need of

Re: Question about initial logical decoding snapshot

2023-01-03 Thread Amit Kapila
On Tue, Jan 3, 2023 at 4:44 PM Amit Kapila wrote: > > On Fri, Dec 30, 2022 at 11:57 PM Chong Wang wrote: > > > > I'm studying the source code about creation of initial logical decoding > > snapshot. What confused me is that why must we process 3 xl_running_xacts > > before we get to the

Re: Question about initial logical decoding snapshot

2023-01-03 Thread Amit Kapila
On Fri, Dec 30, 2022 at 11:57 PM Chong Wang wrote: > > I'm studying the source code about creation of initial logical decoding > snapshot. What confused me is that why must we process 3 xl_running_xacts > before we get to the consistent state. I think we only need 2 > xl_running_xacts. > > I

Question about initial logical decoding snapshot

2022-12-30 Thread Chong Wang
Hi hackers. I'm studying the source code about creation of initial logical decoding snapshot. What confused me is that why must we process 3 xl_running_xacts before we get to the consistent state. I think we only need 2 xl_running_xacts. I think we can get to consistent state when we meet the