Skip to content

Commit 6275b6f

Browse files
committed
Add 'Instance' column to show output
1 parent 99d031a commit 6275b6f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

show.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,11 @@ show_backup_list(FILE *out, parray *backup_list)
224224
{
225225
int i;
226226

227+
/* if you add new fields here, fix the header */
227228
/* show header */
228-
fputs("====================================================================================================================\n", out);
229-
fputs("ID Recovery time Mode WAL Current/Parent TLI Time Data Start LSN Stop LSN Status \n", out);
230-
fputs("====================================================================================================================\n", out);
229+
fputs("===============================================================================================================================\n", out);
230+
fputs(" Instance ID Recovery time Mode WAL Current/Parent TLI Time Data Start LSN Stop LSN Status \n", out);
231+
fputs("===============================================================================================================================\n", out);
231232

232233
for (i = 0; i < parray_num(backup_list); i++)
233234
{
@@ -256,8 +257,8 @@ show_backup_list(FILE *out, parray *backup_list)
256257
parent_tli = get_parent_tli(backup->tli);
257258
backup_id = base36enc(backup->start_time);
258259

259-
fprintf(out, "%-6s %-19s %-6s %-7s %3d / %-3d %5s %6s %2X/%-8X %2X/%-8X %-8s\n",
260-
backup_id,
260+
fprintf(out, " %-11s %-6s %-19s %-6s %-7s %3d / %-3d %5s %6s %2X/%-8X %2X/%-8X %-8s\n",
261+
instance_name, backup_id,
261262
timestamp,
262263
pgBackupGetBackupMode(backup),
263264
backup->stream ? "STREAM": "ARCHIVE",

0 commit comments

Comments
 (0)