pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify printing of LSNs
Date: Tue, 23 Feb 2021 09:30:07 +0000
Message-ID: <E1lEU19-0000dq-R4@gemulon.postgresql.org> (raw )
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 <ashutosh.bapat@enterprisedb.com>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/CAExHW5ub5NaTELZ3hJUCE6amuvqAtsSxc7O+uK7y4t9Rrk23cw@mail....
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(-)
Message-ID: <E1lEU19-0000dq-R4@gemulon.postgresql.org>
Permalink: ../E1lEU19-0000dq-R4@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1lEU19-0000dq-R4@gemulon.postgresql.org
copy link · copy postgr.es
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: peter@eisentraut.org
Subject: Re: pgsql: Simplify printing of LSNs
In-Reply-To: <E1lEU19-0000dq-R4@gemulon.postgresql.org>
References: <E1lEU19-0000dq-R4@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