Add +(pg_lsn,numeric) and -(pg_lsn,numeric) operators.
Fujii Masao <fujii@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/datatype.sgml | modified | +7 −1 |
| src/backend/utils/adt/numeric.c | modified | +98 −0 |
| src/backend/utils/adt/pg_lsn.c | modified | +69 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_operator.dat | modified | +11 −0 |
| src/include/catalog/pg_proc.dat | modified | +12 −0 |
| src/test/regress/expected/numeric.out | modified | +27 −0 |
| src/test/regress/expected/pg_lsn.out | modified | +50 −0 |
| src/test/regress/sql/numeric.sql | modified | +10 −0 |
| src/test/regress/sql/pg_lsn.sql | modified | +11 −0 |
Documentation touched
Discussion
- +(pg_lsn, int8) and -(pg_lsn, int8) operators 25 messages · 2020-04-23 → 2020-06-30