@@ -118,23 +118,23 @@ xmalloc0(int size)
118118static void
119119usage (void )
120120{
121- printf (_ ("%s takes basebackups of running PostgreSQLservers \n\n" ),
121+ printf (_ ("%s takesa basebackup ofa running PostgreSQLserver. \n\n" ),
122122progname );
123123printf (_ ("Usage:\n" ));
124124printf (_ (" %s [OPTION]...\n" ),progname );
125125printf (_ ("\nOptions controlling the output:\n" ));
126- printf (_ (" -D, --pgdata=directory receive base backup into directory\n" ));
127- printf (_ (" -F, --format=p|t output format (plain, tar)\n" ));
128- printf (_ (" -x, --xlog include required WAL files in backup\n" ));
129- printf (_ (" -Z, --compress=0-9 compress tar output\n" ));
126+ printf (_ (" -D, --pgdata=DIRECTORY receive base backup into directory\n" ));
127+ printf (_ (" -F, --format=p|t output format (plain, tar)\n" ));
128+ printf (_ (" -x, --xlog include required WAL files in backup\n" ));
129+ printf (_ (" -Z, --compress=0-9 compress tar output\n" ));
130130printf (_ ("\nGeneral options:\n" ));
131131printf (_ (" -c, --checkpoint=fast|spread\n"
132- " set fast or spread checkpointing\n" ));
133- printf (_ (" -l, --label=label set backup label\n" ));
134- printf (_ (" -P, --progress show progress information\n" ));
135- printf (_ (" -v, --verbose output verbose messages\n" ));
136- printf (_ (" -?, -- help show this help, then exit\n" ));
137- printf (_ (" -V, -- version output version information, then exit\n" ));
132+ " set fast or spread checkpointing\n" ));
133+ printf (_ (" -l, --label=LABEL set backup label\n" ));
134+ printf (_ (" -P, --progress show progress information\n" ));
135+ printf (_ (" -v, --verbose output verbose messages\n" ));
136+ printf (_ (" -- help show this help, then exit\n" ));
137+ printf (_ (" -- version output version information, then exit\n" ));
138138printf (_ ("\nConnection options:\n" ));
139139printf (_ (" -h, --host=HOSTNAME database server host or socket directory\n" ));
140140printf (_ (" -p, --port=PORT database server port number\n" ));
@@ -337,7 +337,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
337337res = PQgetResult (conn );
338338if (PQresultStatus (res )!= PGRES_COPY_OUT )
339339{
340- fprintf (stderr ,_ ("%s: could not get COPY data stream: %s\n " ),
340+ fprintf (stderr ,_ ("%s: could not get COPY data stream: %s" ),
341341progname ,PQerrorMessage (conn ));
342342disconnect_and_exit (1 );
343343}
@@ -398,7 +398,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
398398}
399399else if (r == -2 )
400400{
401- fprintf (stderr ,_ ("%s: could not read COPY data: %s\n " ),
401+ fprintf (stderr ,_ ("%s: could not read COPY data: %s" ),
402402progname ,PQerrorMessage (conn ));
403403disconnect_and_exit (1 );
404404}
@@ -467,7 +467,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
467467res = PQgetResult (conn );
468468if (PQresultStatus (res )!= PGRES_COPY_OUT )
469469{
470- fprintf (stderr ,_ ("%s: could not get COPY data stream: %s\n " ),
470+ fprintf (stderr ,_ ("%s: could not get COPY data stream: %s" ),
471471progname ,PQerrorMessage (conn ));
472472disconnect_and_exit (1 );
473473}
@@ -496,7 +496,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
496496}
497497else if (r == -2 )
498498{
499- fprintf (stderr ,_ ("%s: could not read COPY data: %s\n " ),
499+ fprintf (stderr ,_ ("%s: could not read COPY data: %s" ),
500500progname ,PQerrorMessage (conn ));
501501disconnect_and_exit (1 );
502502}
@@ -510,23 +510,23 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
510510 */
511511if (r != 512 )
512512{
513- fprintf (stderr ,_ ("%s:Invalid tar block header size: %i\n" ),
513+ fprintf (stderr ,_ ("%s:invalid tar block header size: %i\n" ),
514514progname ,r );
515515disconnect_and_exit (1 );
516516}
517517totaldone += 512 ;
518518
519519if (sscanf (copybuf + 124 ,"%11o" ,& current_len_left )!= 1 )
520520{
521- fprintf (stderr ,_ ("%s: could not parse file size! \n" ),
521+ fprintf (stderr ,_ ("%s: could not parse file size\n" ),
522522progname );
523523disconnect_and_exit (1 );
524524}
525525
526526/* Set permissions on the file */
527527if (sscanf (& copybuf [100 ],"%07o " ,& filemode )!= 1 )
528528{
529- fprintf (stderr ,_ ("%s: could not parse file mode! \n" ),
529+ fprintf (stderr ,_ ("%s: could not parse file mode\n" ),
530530progname );
531531disconnect_and_exit (1 );
532532}
@@ -581,7 +581,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
581581}
582582else
583583{
584- fprintf (stderr ,_ ("%s:unknown link indicator \"%c\"\n" ),
584+ fprintf (stderr ,_ ("%s:unrecognized link indicator \"%c\"\n" ),
585585progname ,copybuf [156 ]);
586586disconnect_and_exit (1 );
587587}
@@ -659,7 +659,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
659659
660660if (file != NULL )
661661{
662- fprintf (stderr ,_ ("%s: last file was never finished! \n" ),progname );
662+ fprintf (stderr ,_ ("%s: last file was never finished\n" ),progname );
663663disconnect_and_exit (1 );
664664}
665665
@@ -740,7 +740,7 @@ GetConnection(void)
740740
741741if (PQstatus (tmpconn )!= CONNECTION_OK )
742742{
743- fprintf (stderr ,_ ("%s: could not connect to server: %s\n " ),
743+ fprintf (stderr ,_ ("%s: could not connect to server: %s" ),
744744progname ,PQerrorMessage (tmpconn ));
745745exit (1 );
746746}
@@ -780,7 +780,7 @@ BaseBackup(void)
780780
781781if (PQsendQuery (conn ,current_path )== 0 )
782782{
783- fprintf (stderr ,_ ("%s: could not start base backup: %s\n " ),
783+ fprintf (stderr ,_ ("%s: could not start base backup: %s" ),
784784progname ,PQerrorMessage (conn ));
785785disconnect_and_exit (1 );
786786}
@@ -791,13 +791,13 @@ BaseBackup(void)
791791res = PQgetResult (conn );
792792if (PQresultStatus (res )!= PGRES_TUPLES_OK )
793793{
794- fprintf (stderr ,_ ("%s: could not initiate base backup: %s\n " ),
794+ fprintf (stderr ,_ ("%s: could not initiate base backup: %s" ),
795795progname ,PQerrorMessage (conn ));
796796disconnect_and_exit (1 );
797797}
798798if (PQntuples (res )!= 1 )
799799{
800- fprintf (stderr ,_ ("%s: no start point returned from server. \n" ),
800+ fprintf (stderr ,_ ("%s: no start point returned from server\n" ),
801801progname );
802802disconnect_and_exit (1 );
803803}
@@ -813,13 +813,13 @@ BaseBackup(void)
813813res = PQgetResult (conn );
814814if (PQresultStatus (res )!= PGRES_TUPLES_OK )
815815{
816- fprintf (stderr ,_ ("%s: could not get backup header: %s\n " ),
816+ fprintf (stderr ,_ ("%s: could not get backup header: %s" ),
817817progname ,PQerrorMessage (conn ));
818818disconnect_and_exit (1 );
819819}
820820if (PQntuples (res )< 1 )
821821{
822- fprintf (stderr ,_ ("%s: no data returned from server. \n" ),progname );
822+ fprintf (stderr ,_ ("%s: no data returned from server\n" ),progname );
823823disconnect_and_exit (1 );
824824}
825825
@@ -847,7 +847,7 @@ BaseBackup(void)
847847 */
848848if (format == 't' && strcmp (basedir ,"-" )== 0 && PQntuples (res )> 1 )
849849{
850- fprintf (stderr ,_ ("%s: can only write single tablespace to stdout, database has %i. \n" ),
850+ fprintf (stderr ,_ ("%s: can only write single tablespace to stdout, database has %i\n" ),
851851progname ,PQntuples (res ));
852852disconnect_and_exit (1 );
853853}
@@ -876,13 +876,13 @@ BaseBackup(void)
876876res = PQgetResult (conn );
877877if (PQresultStatus (res )!= PGRES_TUPLES_OK )
878878{
879- fprintf (stderr ,_ ("%s: could not get end xlog position from server. \n" ),
879+ fprintf (stderr ,_ ("%s: could not get end xlog position from server\n" ),
880880progname );
881881disconnect_and_exit (1 );
882882}
883883if (PQntuples (res )!= 1 )
884884{
885- fprintf (stderr ,_ ("%s: no end point returned from server. \n" ),
885+ fprintf (stderr ,_ ("%s: no end point returned from server\n" ),
886886progname );
887887disconnect_and_exit (1 );
888888}
@@ -894,7 +894,7 @@ BaseBackup(void)
894894res = PQgetResult (conn );
895895if (PQresultStatus (res )!= PGRES_COMMAND_OK )
896896{
897- fprintf (stderr ,_ ("%s: final receive failed: %s\n " ),
897+ fprintf (stderr ,_ ("%s: final receive failed: %s" ),
898898progname ,PQerrorMessage (conn ));
899899disconnect_and_exit (1 );
900900}
@@ -905,7 +905,7 @@ BaseBackup(void)
905905PQfinish (conn );
906906
907907if (verbose )
908- fprintf (stderr ,"%s: base backup completed. \n" ,progname );
908+ fprintf (stderr ,"%s: base backup completed\n" ,progname );
909909}
910910
911911