@@ -62,15 +62,27 @@ static void disconnect_and_exit(int code);
62
62
static void
63
63
usage (void )
64
64
{
65
- printf (_ ("%s receives PostgreSQL logical change stream .\n\n" ),
65
+ printf (_ ("%s receives PostgreSQL logical change streams .\n\n" ),
66
66
progname );
67
67
printf (_ ("Usage:\n" ));
68
68
printf (_ (" %s [OPTION]...\n" ), progname );
69
+ printf (_ ("\nAction to be performed:\n" ));
70
+ printf (_ (" --create-slot create a new replication slot (for the slot's name see --slot)\n" ));
71
+ printf (_ (" --drop-slot drop the replication slot (for the slot's name see --slot)\n" ));
72
+ printf (_ (" --start start streaming in a replication slot (for the slot's name see --slot)\n" ));
69
73
printf (_ ("\nOptions:\n" ));
70
- printf (_ (" -f, --file=FILE receive log into this file. - for stdout\n" ));
74
+ printf (_ (" -f, --file=FILE receive log into this file, - for stdout\n" ));
71
75
printf (_ (" -F --fsync-interval=SECS\n"
72
- " frequency of syncs to the output file (default: %d)\n" ), (fsync_interval / 1000 ));
76
+ " time between fsyncs to the output file (default: %d)\n" ), (fsync_interval / 1000 ));
77
+ printf (_ (" -I, --startpos=LSN where in an existing slot should the streaming start\n" ));
73
78
printf (_ (" -n, --no-loop do not loop on connection lost\n" ));
79
+ printf (_ (" -o, --option=NAME[=VALUE]\n"
80
+ " pass option NAME with optional value VALUE to the\n"
81
+ " output plugin\n" ));
82
+ printf (_ (" -P, --plugin=PLUGIN use output plugin PLUGIN (default: %s)\n" ), plugin );
83
+ printf (_ (" -s, --status-interval=SECS\n"
84
+ " time between status packets sent to server (default: %d)\n" ), (standby_message_timeout / 1000 ));
85
+ printf (_ (" -S, --slot=SLOTNAME name of the logical replication slot\n" ));
74
86
printf (_ (" -v, --verbose output verbose messages\n" ));
75
87
printf (_ (" -V, --version output version information, then exit\n" ));
76
88
printf (_ (" -?, --help show this help, then exit\n" ));
@@ -81,19 +93,6 @@ usage(void)
81
93
printf (_ (" -U, --username=NAME connect as specified database user\n" ));
82
94
printf (_ (" -w, --no-password never prompt for password\n" ));
83
95
printf (_ (" -W, --password force password prompt (should happen automatically)\n" ));
84
- printf (_ ("\nReplication options:\n" ));
85
- printf (_ (" -I, --startpos=PTR where in an existing slot should the streaming start\n" ));
86
- printf (_ (" -o, --option=NAME[=VALUE]\n"
87
- " specify option NAME with optional value VALUE, to be passed\n"
88
- " to the output plugin\n" ));
89
- printf (_ (" -P, --plugin=PLUGIN use output plugin PLUGIN (default: %s)\n" ), plugin );
90
- printf (_ (" -s, --status-interval=SECS\n"
91
- " time between status packets sent to server (default: %d)\n" ), (standby_message_timeout / 1000 ));
92
- printf (_ (" -S, --slot=SLOT name of the logical replication slot\n" ));
93
- printf (_ ("\nAction to be performed:\n" ));
94
- printf (_ (" --create-slot create a new replication slot (for the slot's name see --slot)\n" ));
95
- printf (_ (" --drop-slot drop the replication slot (for the slot's name see --slot)\n" ));
96
- printf (_ (" --start start streaming in a replication slot (for the slot's name see --slot)\n" ));
97
96
printf (_ ("\nReport bugs to <pgsql-bugs@postgresql.org>.\n" ));
98
97
}
99
98
0 commit comments