mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-24 08:52:38 +02:00
Add WAL column for show command
This commit is contained in:
parent
0effc18193
commit
737c8b0647
4
backup.c
4
backup.c
@ -421,8 +421,8 @@ do_backup(void)
|
||||
*/
|
||||
check_system_identifiers();
|
||||
|
||||
elog(LOG, "Backup start. backup-mode = %s+%s",
|
||||
pgBackupGetBackupMode(¤t), current.stream?"STREAM":"ARCHIVE");
|
||||
elog(LOG, "Backup start. backup-mode = %s, stream = %s",
|
||||
pgBackupGetBackupMode(¤t), current.stream ? "true" : "false");
|
||||
|
||||
/* Start backup. Update backup status. */
|
||||
current.status = BACKUP_STATUS_RUNNING;
|
||||
|
10
show.c
10
show.c
@ -166,9 +166,9 @@ show_backup_list(FILE *out, parray *backup_list)
|
||||
int i;
|
||||
|
||||
/* show header */
|
||||
fputs("==================================================================================================================\n", out);
|
||||
fputs("ID Recovery time Mode Current/Parent TLI Time Data Start LSN Stop LSN Status \n", out);
|
||||
fputs("==================================================================================================================\n", out);
|
||||
fputs("====================================================================================================================\n", out);
|
||||
fputs("ID Recovery time Mode WAL Current/Parent TLI Time Data Start LSN Stop LSN Status \n", out);
|
||||
fputs("====================================================================================================================\n", out);
|
||||
|
||||
for (i = 0; i < parray_num(backup_list); i++)
|
||||
{
|
||||
@ -197,11 +197,11 @@ show_backup_list(FILE *out, parray *backup_list)
|
||||
parent_tli = get_parent_tli(backup->tli);
|
||||
backup_id = base36enc(backup->start_time);
|
||||
|
||||
fprintf(out, "%-8s %-19s %s%-9s %2d / %d %5s %6s %2X/%08X %2X/%08X %-8s\n",
|
||||
fprintf(out, "%-6s %-19s %-6s %-7s %3d / %-3d %5s %6s %2X/%08X %2X/%08X %-8s\n",
|
||||
backup_id,
|
||||
timestamp,
|
||||
pgBackupGetBackupMode(backup),
|
||||
backup->stream ? "+STREAM": "+ARCHIVE",
|
||||
backup->stream ? "STREAM": "ARCHIVE",
|
||||
backup->tli,
|
||||
parent_tli,
|
||||
duration,
|
||||
|
Loading…
Reference in New Issue
Block a user