On Thu, Apr 23, 2020 at 12:28 PM Ashutosh Bapat <ashutosh.bapat....@gmail.com> wrote: > As it's presented in the patch I don't see much value in calling it as > LSN arithmetic. If we could do something like LSN of Nth WAL record > +/- <number of WAL records, n> = LSN of N+/- n th log record that > would be interesting. :)
Well, that would mean that the value of x + 1 would depend not only on x but on the contents of WAL, and that it would be uncomputable without having the WAL available, and that adding large values would be quite expensive. I much prefer Fujii Masao's proposal. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company