| From: | Fujii Masao <fujii(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add +(pg_lsn,numeric) and -(pg_lsn,numeric) operators. |
| Date: | 2020-06-30 14:57:13 |
| Message-ID: | E1jqHhB-0000Xt-Mi@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2020-06-30 15:56:08 | pgsql: doc: change pg_upgrade wal_level to be not minimal |
| Previous Message | Michael Paquier | 2020-06-30 04:26:27 | pgsql: Prevent compilation of frontend-only files in src/common/ with b |