pgsql: Simplify printing of LSNs

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

pgsql: Simplify printing of LSNs

Peter Eisentraut-3
Simplify printing of LSNs

Add a macro LSN_FORMAT_ARGS for use in printf-style printing of LSNs.
Convert all applicable code to use it.

Reviewed-by: Ashutosh Bapat <[hidden email]>
Reviewed-by: Kyotaro Horiguchi <[hidden email]>
Reviewed-by: Michael Paquier <[hidden email]>
Discussion: https://www.postgresql.org/message-id/flat/CAExHW5ub5NaTELZ3hJUCE6amuvqAtsSxc7O+uK7y4t9Rrk23cw@...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6f6f284c7ee44264eb3e128e2bf54d9276711d11

Modified Files
--------------
contrib/amcheck/verify_nbtree.c                    |  57 ++++-------
contrib/pageinspect/rawpage.c                      |   3 +-
src/backend/access/heap/rewriteheap.c              |   6 +-
src/backend/access/rmgrdesc/replorigindesc.c       |   3 +-
src/backend/access/rmgrdesc/xactdesc.c             |   3 +-
src/backend/access/rmgrdesc/xlogdesc.c             |   5 +-
src/backend/access/transam/timeline.c              |   2 +-
src/backend/access/transam/twophase.c              |   6 +-
src/backend/access/transam/xlog.c                  | 110 +++++++++------------
src/backend/access/transam/xlogreader.c            |  58 +++++------
src/backend/access/transam/xlogutils.c             |   3 +-
src/backend/replication/backup_manifest.c          |   4 +-
src/backend/replication/basebackup.c               |   2 +-
.../libpqwalreceiver/libpqwalreceiver.c            |   4 +-
src/backend/replication/logical/logical.c          |  34 +++----
src/backend/replication/logical/origin.c           |   3 +-
src/backend/replication/logical/reorderbuffer.c    |   3 +-
src/backend/replication/logical/snapbuild.c        |  20 ++--
src/backend/replication/logical/tablesync.c        |   4 +-
src/backend/replication/logical/worker.c           |   7 +-
src/backend/replication/slot.c                     |   3 +-
src/backend/replication/slotfuncs.c                |   3 +-
src/backend/replication/syncrep.c                  |   8 +-
src/backend/replication/walreceiver.c              |  20 ++--
src/backend/replication/walsender.c                |  32 +++---
src/backend/storage/ipc/standby.c                  |   4 +-
src/backend/utils/adt/pg_lsn.c                     |   8 +-
src/bin/pg_basebackup/pg_receivewal.c              |   8 +-
src/bin/pg_basebackup/pg_recvlogical.c             |  13 ++-
src/bin/pg_basebackup/receivelog.c                 |   6 +-
src/bin/pg_controldata/pg_controldata.c            |  18 ++--
src/bin/pg_rewind/parsexlog.c                      |  14 +--
src/bin/pg_rewind/pg_rewind.c                      |  13 ++-
src/bin/pg_verifybackup/pg_verifybackup.c          |   6 +-
src/bin/pg_waldump/pg_waldump.c                    |  20 ++--
src/include/access/xlogdefs.h                      |   7 ++
36 files changed, 212 insertions(+), 308 deletions(-)