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

From Fujii Masao
Subject +(pg_lsn, int8) and -(pg_lsn, int8) operators
Date
Msg-id ed9f7f74-e996-67f8-554a-52ebd3779b3b@oss.nttdata.com
Whole thread Raw
Responses Re: +(pg_lsn, int8) and -(pg_lsn, int8) operators  (Robert Haas <robertmhaas@gmail.com>)
Re: +(pg_lsn, int8) and -(pg_lsn, int8) operators  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
List pgsql-hackers
Hi,

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.

Attached is the patch implementing those operators.
Of course, this is the dev item for v14.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: WAL usage calculation patch
Next
From: Rajkumar Raghuwanshi
Date:
Subject: Re: WIP/PoC for parallel backup