Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit46768fa

Browse files
committed
Change parse cmd options.
1 parent2cdb902 commit46768fa

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎pg_probackup.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,28 @@ static void opt_backup_mode(pgut_option *opt, const char *arg);
5252
staticpgut_optionoptions[]=
5353
{
5454
/* directory options */
55-
{'s','D',"pgdata",&pgdata,SOURCE_ENV },
56-
{'s','B',"backup-path",&backup_path,SOURCE_ENV },
55+
{'s','D',"pgdata",&pgdata,SOURCE_ENV },
56+
{'s','B',"backup-path",&backup_path,SOURCE_ENV },
5757
/* common options */
58-
/*{ 'b', 'c', "check",&check },*/
59-
{'i','j',"threads",&num_threads },
60-
{'b',8,"stream",&stream_wal },
61-
{'b',11,"progress",&progress },
58+
/*{ 'b', 'c', "check",&check },*/
59+
{'i','j',"threads",&num_threads },
60+
{'b',8,"stream",&stream_wal },
61+
{'b',11,"progress",&progress },
6262
/* backup options */
6363
{'b',10,"backup-pg-log",&backup_logs },
6464
{'f','b',"backup-mode",opt_backup_mode,SOURCE_ENV },
6565
{'b','C',"smooth-checkpoint",&smooth_checkpoint,SOURCE_ENV },
66-
{'s','S',"slot",&replication_slot,SOURCE_ENV },
66+
{'s','S',"slot",&replication_slot,SOURCE_CMDLINE },
6767
/* options with only long name (keep-xxx) */
6868
/*{ 'i', 1, "keep-data-generations", &keep_data_generations, SOURCE_ENV },
6969
{ 'i', 2, "keep-data-days",&keep_data_days,SOURCE_ENV },*/
7070
/* restore options */
71-
{'s',3,"time",&target_time,SOURCE_ENV },
72-
{'s',4,"xid",&target_xid,SOURCE_ENV },
73-
{'s',5,"inclusive",&target_inclusive,SOURCE_ENV },
74-
{'u',6,"timeline",&target_tli,SOURCE_ENV },
71+
{'s',3,"time",&target_time,SOURCE_CMDLINE },
72+
{'s',4,"xid",&target_xid,SOURCE_CMDLINE },
73+
{'s',5,"inclusive",&target_inclusive,SOURCE_CMDLINE },
74+
{'u',6,"timeline",&target_tli,SOURCE_CMDLINE },
7575
/* delete options */
76-
{'b',12,"wal",&delete_wal },
76+
{'b',12,"wal",&delete_wal },
7777
{0 }
7878
};
7979

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp