1
0
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:
Arthur Zakirov 2017-04-24 17:56:05 +03:00
parent 0effc18193
commit 737c8b0647
2 changed files with 7 additions and 7 deletions

View File

@ -421,8 +421,8 @@ do_backup(void)
*/
check_system_identifiers();
elog(LOG, "Backup start. backup-mode = %s+%s",
pgBackupGetBackupMode(&current), current.stream?"STREAM":"ARCHIVE");
elog(LOG, "Backup start. backup-mode = %s, stream = %s",
pgBackupGetBackupMode(&current), current.stream ? "true" : "false");
/* Start backup. Update backup status. */
current.status = BACKUP_STATUS_RUNNING;

10
show.c
View File

@ -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,