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+Tgmoa0gRq56Z517QABepGcpbK-SERkp4P+5JjuQH+3Y8v4Kw@mail.gmail.com
Whole thread Raw
In response to +(pg_lsn, int8) and -(pg_lsn, int8) operators  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: +(pg_lsn, int8) and -(pg_lsn, int8) operators
List pgsql-hackers
On Thu, Apr 23, 2020 at 5:21 AM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:
> I'd like to propose to introduce the +(pg_lsn, int8) and -(pg_lsn, int8)
> operators. The + operator allows us to add the number of bytes into pg_lsn,
> resulting new pg_lsn. The - operator allows us to substract the number
> of bytes from pg_lsn, resulting new pg_lsn. Thought?
> I sometimes need these features for debuging purpose.

For anyone who missed it, this idea was popular on Twitter:

https://twitter.com/fujii_masao/status/1252652020487487488

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Juan José Santamaría Flecha
Date:
Subject: Re: PG compilation error with Visual Studio 2015/2017/2019
Next
From: Ranier Vilela
Date:
Subject: [PATCH] Fix division by zero (explain.c)