@@ -80,14 +80,14 @@ usage(void)
8080printf (_ (" -w, --no-password never prompt for password\n" ));
8181printf (_ (" -W, --password force password prompt (should happen automatically)\n" ));
8282printf (_ ("\nReplication options:\n" ));
83- printf (_ (" -F --fsync-interval=INTERVAL \n"
84- " frequency of syncs to the output file (in seconds, defaults to 10 )\n" ));
83+ printf (_ (" -F --fsync-interval=SECS \n"
84+ " frequency of syncs to the output file (default: %d )\n" ), ( fsync_interval / 1000 ));
8585printf (_ (" -o, --option=NAME[=VALUE]\n"
8686" Specify option NAME with optional value VALUE, to be passed\n"
8787" to the output plugin\n" ));
88- printf (_ (" -P, --plugin=PLUGIN use output plugin PLUGIN (defaults to test_decoding )\n" ));
89- printf (_ (" -s, --status-interval=INTERVAL \n"
90- " time between status packets sent to server (in seconds, defaults to 10 )\n" ));
88+ printf (_ (" -P, --plugin=PLUGIN use output plugin PLUGIN (default: %s )\n" ), plugin );
89+ printf (_ (" -s, --status-interval=SECS \n"
90+ " time between status packets sent to server (default: %d )\n" ), ( standby_message_timeout / 1000 ));
9191printf (_ (" -S, --slot=SLOT use existing replication slot SLOT instead of starting a new one\n" ));
9292printf (_ (" -I, --startpos=PTR Where in an existing slot should the streaming start\n" ));
9393printf (_ ("\nAction to be performed:\n" ));
@@ -253,7 +253,7 @@ StreamLog(void)
253253res = PQexec (conn ,query -> data );
254254if (PQresultStatus (res )!= PGRES_COPY_BOTH )
255255{
256- fprintf (stderr ,_ ("%s: could not send replication command \"%s\": %s\n " ),
256+ fprintf (stderr ,_ ("%s: could not send replication command \"%s\": %s" ),
257257progname ,query -> data ,PQresultErrorMessage (res ));
258258PQclear (res );
259259gotoerror ;
@@ -263,7 +263,7 @@ StreamLog(void)
263263
264264if (verbose )
265265fprintf (stderr ,
266- _ ("%s:initiated streaming\n" ),
266+ _ ("%s: streaming initiated \n" ),
267267progname );
268268
269269while (!time_to_abort )
@@ -817,15 +817,15 @@ main(int argc, char **argv)
817817
818818if (do_drop_slot && (do_create_slot || do_start_slot ))
819819{
820- fprintf (stderr ,_ ("%s:--stop cannotbe combined with --init or --start\n" ),progname );
820+ fprintf (stderr ,_ ("%s: cannotuse --init or --start together with --stop \n" ),progname );
821821fprintf (stderr ,_ ("Try \"%s --help\" for more information.\n" ),
822822progname );
823823exit (1 );
824824}
825825
826826if (startpos && (do_create_slot || do_drop_slot ))
827827{
828- fprintf (stderr ,_ ("%s:--startpos cannotbe combined with --init or --stop\n" ),progname );
828+ fprintf (stderr ,_ ("%s: cannotuse --init or --stop together with --startpos \n" ),progname );
829829fprintf (stderr ,_ ("Try \"%s --help\" for more information.\n" ),
830830progname );
831831exit (1 );
@@ -895,7 +895,7 @@ main(int argc, char **argv)
895895if (PQntuples (res )!= 0 || PQnfields (res )!= 0 )
896896{
897897fprintf (stderr ,
898- _ ("%s: could not stop logicalrep : got %d rows and %d fields, expected %d rows and %d fields\n" ),
898+ _ ("%s: could not stop logicalreplication : got %d rows and %d fields, expected %d rows and %d fields\n" ),
899899progname ,PQntuples (res ),PQnfields (res ),0 ,0 );
900900disconnect_and_exit (1 );
901901}
@@ -930,7 +930,7 @@ main(int argc, char **argv)
930930if (PQntuples (res )!= 1 || PQnfields (res )!= 4 )
931931{
932932fprintf (stderr ,
933- _ ("%s: could not init logicalrep : got %d rows and %d fields, expected %d rows and %d fields\n" ),
933+ _ ("%s: could not init logicalreplication : got %d rows and %d fields, expected %d rows and %d fields\n" ),
934934progname ,PQntuples (res ),PQnfields (res ),1 ,4 );
935935disconnect_and_exit (1 );
936936}
@@ -965,14 +965,14 @@ main(int argc, char **argv)
965965}
966966else if (noloop )
967967{
968- fprintf (stderr ,_ ("%s: disconnected. \n" ),progname );
968+ fprintf (stderr ,_ ("%s: disconnected\n" ),progname );
969969exit (1 );
970970}
971971else
972972{
973973fprintf (stderr ,
974974/* translator: check source for value for %d */
975- _ ("%s: disconnected. Waiting %d seconds to try again. \n" ),
975+ _ ("%s: disconnected; waiting %d seconds to try again\n" ),
976976progname ,RECONNECT_SLEEP_TIME );
977977pg_usleep (RECONNECT_SLEEP_TIME * 1000000 );
978978}