pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add +(pg_lsn,numeric) and -(pg_lsn,numeric) operators.
Date: Tue, 30 Jun 2020 14:57:13 +0000
Message-ID: <E1jqHhB-0000Xt-Mi@gemulon.postgresql.org> (raw)

Add +(pg_lsn,numeric) and -(pg_lsn,numeric) operators.

By using these operators, the number of bytes can be added into and
subtracted from LSN.

Bump catalog version.

Author: Fujii Masao
Reviewed-by: Kyotaro Horiguchi, Michael Paquier, Asif Rehman
Discussion: https://postgr.es/m/ed9f7f74-e996-67f8-554a-52ebd3779b3b@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9bae7e4cde7c9786ee61dac4a3e032b346350a88

Modified Files
--------------
doc/src/sgml/datatype.sgml            |  8 ++-
src/backend/utils/adt/numeric.c       | 98 +++++++++++++++++++++++++++++++++++
src/backend/utils/adt/pg_lsn.c        | 69 ++++++++++++++++++++++++
src/include/catalog/catversion.h      |  2 +-
src/include/catalog/pg_operator.dat   | 11 ++++
src/include/catalog/pg_proc.dat       | 12 +++++
src/test/regress/expected/numeric.out | 27 ++++++++++
src/test/regress/expected/pg_lsn.out  | 50 ++++++++++++++++++
src/test/regress/sql/numeric.sql      | 10 ++++
src/test/regress/sql/pg_lsn.sql       | 11 ++++
10 files changed, 296 insertions(+), 2 deletions(-)



Message-ID: <E1jqHhB-0000Xt-Mi@gemulon.postgresql.org>
Permalink:  ../E1jqHhB-0000Xt-Mi@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jqHhB-0000Xt-Mi@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Add +(pg_lsn,numeric) and -(pg_lsn,numeric) operators.
  In-Reply-To: <E1jqHhB-0000Xt-Mi@gemulon.postgresql.org>
  References: <E1jqHhB-0000Xt-Mi@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox