Skip to content

Commit 737c8b0

Browse files
committed
Add WAL column for show command
1 parent 0effc18 commit 737c8b0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

backup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ do_backup(void)
421421
*/
422422
check_system_identifiers();
423423

424-
elog(LOG, "Backup start. backup-mode = %s+%s",
425-
pgBackupGetBackupMode(&current), current.stream?"STREAM":"ARCHIVE");
424+
elog(LOG, "Backup start. backup-mode = %s, stream = %s",
425+
pgBackupGetBackupMode(&current), current.stream ? "true" : "false");
426426

427427
/* Start backup. Update backup status. */
428428
current.status = BACKUP_STATUS_RUNNING;

show.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ show_backup_list(FILE *out, parray *backup_list)
166166
int i;
167167

168168
/* show header */
169-
fputs("==================================================================================================================\n", out);
170-
fputs("ID Recovery time Mode Current/Parent TLI Time Data Start LSN Stop LSN Status \n", out);
171-
fputs("==================================================================================================================\n", out);
169+
fputs("====================================================================================================================\n", out);
170+
fputs("ID Recovery time Mode WAL Current/Parent TLI Time Data Start LSN Stop LSN Status \n", out);
171+
fputs("====================================================================================================================\n", out);
172172

173173
for (i = 0; i < parray_num(backup_list); i++)
174174
{
@@ -197,11 +197,11 @@ show_backup_list(FILE *out, parray *backup_list)
197197
parent_tli = get_parent_tli(backup->tli);
198198
backup_id = base36enc(backup->start_time);
199199

200-
fprintf(out, "%-8s %-19s %s%-9s %2d / %d %5s %6s %2X/%08X %2X/%08X %-8s\n",
200+
fprintf(out, "%-6s %-19s %-6s %-7s %3d / %-3d %5s %6s %2X/%08X %2X/%08X %-8s\n",
201201
backup_id,
202202
timestamp,
203203
pgBackupGetBackupMode(backup),
204-
backup->stream ? "+STREAM": "+ARCHIVE",
204+
backup->stream ? "STREAM": "ARCHIVE",
205205
backup->tli,
206206
parent_tli,
207207
duration,

0 commit comments

Comments
 (0)