mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-24 11:46:31 +02:00
Add 'Instance' column to show output
This commit is contained in:
parent
99d031a641
commit
6275b6f082
11
show.c
11
show.c
@ -224,10 +224,11 @@ show_backup_list(FILE *out, parray *backup_list)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* if you add new fields here, fix the header */
|
||||||
/* show header */
|
/* show header */
|
||||||
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(" Instance ID Recovery time Mode WAL Current/Parent TLI Time Data Start LSN Stop LSN Status \n", out);
|
||||||
fputs("====================================================================================================================\n", out);
|
fputs("===============================================================================================================================\n", out);
|
||||||
|
|
||||||
for (i = 0; i < parray_num(backup_list); i++)
|
for (i = 0; i < parray_num(backup_list); i++)
|
||||||
{
|
{
|
||||||
@ -256,8 +257,8 @@ show_backup_list(FILE *out, parray *backup_list)
|
|||||||
parent_tli = get_parent_tli(backup->tli);
|
parent_tli = get_parent_tli(backup->tli);
|
||||||
backup_id = base36enc(backup->start_time);
|
backup_id = base36enc(backup->start_time);
|
||||||
|
|
||||||
fprintf(out, "%-6s %-19s %-6s %-7s %3d / %-3d %5s %6s %2X/%-8X %2X/%-8X %-8s\n",
|
fprintf(out, " %-11s %-6s %-19s %-6s %-7s %3d / %-3d %5s %6s %2X/%-8X %2X/%-8X %-8s\n",
|
||||||
backup_id,
|
instance_name, backup_id,
|
||||||
timestamp,
|
timestamp,
|
||||||
pgBackupGetBackupMode(backup),
|
pgBackupGetBackupMode(backup),
|
||||||
backup->stream ? "STREAM": "ARCHIVE",
|
backup->stream ? "STREAM": "ARCHIVE",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user