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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Fujii Masao-3
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@...

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(-)