@@ -80,14 +80,14 @@ usage(void)
8080 printf (_ (" -w, --no-password never prompt for password\n" ));
8181 printf (_ (" -W, --password force password prompt (should happen automatically)\n" ));
8282 printf (_ ("\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 ));
8585 printf (_ (" -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 ));
9191 printf (_ (" -S, --slot=SLOT use existing replication slot SLOT instead of starting a new one\n" ));
9292 printf (_ (" -I, --startpos=PTR Where in an existing slot should the streaming start\n" ));
9393 printf (_ ("\nAction to be performed:\n" ));
@@ -253,7 +253,7 @@ StreamLog(void)
253253 res = PQexec (conn , query -> data );
254254 if (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" ),
257257 progname , query -> data , PQresultErrorMessage (res ));
258258 PQclear (res );
259259 goto error ;
@@ -263,7 +263,7 @@ StreamLog(void)
263263
264264 if (verbose )
265265 fprintf (stderr ,
266- _ ("%s: initiated streaming\n" ),
266+ _ ("%s: streaming initiated \n" ),
267267 progname );
268268
269269 while (!time_to_abort )
@@ -817,15 +817,15 @@ main(int argc, char **argv)
817817
818818 if (do_drop_slot && (do_create_slot || do_start_slot ))
819819 {
820- fprintf (stderr , _ ("%s: --stop cannot be combined with --init or --start\n" ), progname );
820+ fprintf (stderr , _ ("%s: cannot use --init or --start together with --stop \n" ), progname );
821821 fprintf (stderr , _ ("Try \"%s --help\" for more information.\n" ),
822822 progname );
823823 exit (1 );
824824 }
825825
826826 if (startpos && (do_create_slot || do_drop_slot ))
827827 {
828- fprintf (stderr , _ ("%s: --startpos cannot be combined with --init or --stop\n" ), progname );
828+ fprintf (stderr , _ ("%s: cannot use --init or --stop together with --startpos \n" ), progname );
829829 fprintf (stderr , _ ("Try \"%s --help\" for more information.\n" ),
830830 progname );
831831 exit (1 );
@@ -895,7 +895,7 @@ main(int argc, char **argv)
895895 if (PQntuples (res ) != 0 || PQnfields (res ) != 0 )
896896 {
897897 fprintf (stderr ,
898- _ ("%s: could not stop logical rep : got %d rows and %d fields, expected %d rows and %d fields\n" ),
898+ _ ("%s: could not stop logical replication : got %d rows and %d fields, expected %d rows and %d fields\n" ),
899899 progname , PQntuples (res ), PQnfields (res ), 0 , 0 );
900900 disconnect_and_exit (1 );
901901 }
@@ -930,7 +930,7 @@ main(int argc, char **argv)
930930 if (PQntuples (res ) != 1 || PQnfields (res ) != 4 )
931931 {
932932 fprintf (stderr ,
933- _ ("%s: could not init logical rep : got %d rows and %d fields, expected %d rows and %d fields\n" ),
933+ _ ("%s: could not init logical replication : got %d rows and %d fields, expected %d rows and %d fields\n" ),
934934 progname , PQntuples (res ), PQnfields (res ), 1 , 4 );
935935 disconnect_and_exit (1 );
936936 }
@@ -965,14 +965,14 @@ main(int argc, char **argv)
965965 }
966966 else if (noloop )
967967 {
968- fprintf (stderr , _ ("%s: disconnected. \n" ), progname );
968+ fprintf (stderr , _ ("%s: disconnected\n" ), progname );
969969 exit (1 );
970970 }
971971 else
972972 {
973973 fprintf (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" ),
976976 progname , RECONNECT_SLEEP_TIME );
977977 pg_usleep (RECONNECT_SLEEP_TIME * 1000000 );
978978 }
0 commit comments