From 6f6f284c7ee44264eb3e128e2bf54d9276711d11 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 23 Feb 2021 10:14:38 +0100 Subject: 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 Reviewed-by: Kyotaro Horiguchi Reviewed-by: Michael Paquier Discussion: https://www.postgresql.org/message-id/flat/CAExHW5ub5NaTELZ3hJUCE6amuvqAtsSxc7O+uK7y4t9Rrk23cw@mail.gmail.com --- src/backend/replication/logical/tablesync.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/backend/replication/logical/tablesync.c') diff --git a/src/backend/replication/logical/tablesync.c b/src/backend/replication/logical/tablesync.c index 24a6ce5d8ed..feb634e7ac0 100644 --- a/src/backend/replication/logical/tablesync.c +++ b/src/backend/replication/logical/tablesync.c @@ -1120,9 +1120,7 @@ copy_table_done: elog(DEBUG1, "LogicalRepSyncTableStart: '%s' origin_startpos lsn %X/%X", - originname, - (uint32) (*origin_startpos >> 32), - (uint32) *origin_startpos); + originname, LSN_FORMAT_ARGS(*origin_startpos)); /* * We are done with the initial data synchronization, update the state. -- cgit v1.2.3