Re: +(pg_lsn, int8) and -(pg_lsn, int8) operators - Mailing list pgsql-hackers

From Robert Haas
Subject Re: +(pg_lsn, int8) and -(pg_lsn, int8) operators
Date
Msg-id CA+TgmoZ8NTkJP2k4bfVVopvyrRffz43tO7vkpQ9Fhxj9oFDS+A@mail.gmail.com
Whole thread Raw
In response to Re: +(pg_lsn, int8) and -(pg_lsn, int8) operators  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
List pgsql-hackers
On Thu, Apr 23, 2020 at 12:28 PM Ashutosh Bapat
<ashutosh.bapat.oss@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



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: [PATCH] FIx resource leaks (pg_resetwal.c)
Next
From: Peter Geoghegan
Date:
Subject: Re: [PATCH] FIx resource leaks (pg_resetwal.c)