@@ -84,7 +84,7 @@ backup_stopbackup_callback(bool fatal, void *userdata)
8484 */
8585if (backup_in_progress )
8686{
87- elog (WARNING ,"backup in progress,stop backup " );
87+ elog (WARNING ,"A backupis in progress,stopping it. " );
8888/* don't care about stop_lsn in case of error */
8989pg_stop_backup_send (st -> conn ,st -> server_version ,current .from_replica ,exclusive_backup ,NULL );
9090}
@@ -711,8 +711,9 @@ do_backup(InstanceState *instanceState, pgSetBackupParams *set_backup_params,
711711char pretty_bytes [20 ];
712712
713713if (!instance_config .pgdata )
714- elog (ERROR ,"required parameter not specified: PGDATA "
715- "(-D, --pgdata)" );
714+ elog (ERROR ,"No postgres data directory specified.\n"
715+ "Please specify it either using environment variable PGDATA or\n"
716+ "command line option --pgdata (-D)" );
716717
717718/* Initialize PGInfonode */
718719pgNodeInit (& nodeInfo );
@@ -936,12 +937,12 @@ check_server_version(PGconn *conn, PGNodeInfo *nodeInfo)
936937
937938if (nodeInfo -> server_version < 90500 )
938939elog (ERROR ,
939- "server version is %s, must be %s or higher" ,
940+ "Server version is %s, must be %s or higher" ,
940941nodeInfo -> server_version_str ,"9.5" );
941942
942943if (current .from_replica && nodeInfo -> server_version < 90600 )
943944elog (ERROR ,
944- "server version is %s, must be %s or higher for backup from replica" ,
945+ "Server version is %s, must be %s or higher for backup from replica" ,
945946nodeInfo -> server_version_str ,"9.6" );
946947
947948if (nodeInfo -> pgpro_support )
@@ -1050,7 +1051,7 @@ confirm_block_size(PGconn *conn, const char *name, int blcksz)
10501051
10511052res = pgut_execute (conn ,"SELECT pg_catalog.current_setting($1)" ,1 ,& name );
10521053if (PQntuples (res )!= 1 || PQnfields (res )!= 1 )
1053- elog (ERROR ,"cannot get %s: %s" ,name ,PQerrorMessage (conn ));
1054+ elog (ERROR ,"Cannot get %s: %s" ,name ,PQerrorMessage (conn ));
10541055
10551056block_size = strtol (PQgetvalue (res ,0 ,0 ),& endp ,10 );
10561057if ((endp && * endp )|| block_size != blcksz )
@@ -1439,7 +1440,7 @@ wait_wal_lsn(const char *wal_segment_dir, XLogRecPtr target_lsn, bool is_start_l
14391440}
14401441
14411442if (!current .stream && is_start_lsn && try_count == 30 )
1442- elog (WARNING ,"By default pg_probackupassume WAL delivery method to be ARCHIVE. "
1443+ elog (WARNING ,"By default pg_probackupassumes that WAL delivery method to be ARCHIVE. "
14431444"If continuous archiving is not set up, use '--stream' option to make autonomous backup. "
14441445"Otherwise check that continuous archiving works correctly." );
14451446
@@ -1775,9 +1776,9 @@ pg_stop_backup_consume(PGconn *conn, int server_version,
17751776{
17761777pgut_cancel (conn );
17771778#if PG_VERSION_NUM >=150000
1778- elog (ERROR ,"interrupted during waiting for pg_backup_stop" );
1779+ elog (ERROR ,"Interrupted during waiting for pg_backup_stop" );
17791780#else
1780- elog (ERROR ,"interrupted during waiting for pg_stop_backup" );
1781+ elog (ERROR ,"Interrupted during waiting for pg_stop_backup" );
17811782#endif
17821783}
17831784
@@ -1823,7 +1824,7 @@ pg_stop_backup_consume(PGconn *conn, int server_version,
18231824case PGRES_TUPLES_OK :
18241825break ;
18251826default :
1826- elog (ERROR ,"query failed: %s query was: %s" ,
1827+ elog (ERROR ,"Query failed: %s query was: %s" ,
18271828PQerrorMessage (conn ),query_text );
18281829}
18291830backup_in_progress = false;
@@ -1834,13 +1835,13 @@ pg_stop_backup_consume(PGconn *conn, int server_version,
18341835/* get&check recovery_xid */
18351836if (sscanf (PQgetvalue (query_result ,0 ,recovery_xid_colno ),XID_FMT ,& result -> snapshot_xid )!= 1 )
18361837elog (ERROR ,
1837- "result of txid_snapshot_xmax() is invalid: %s" ,
1838+ "Result of txid_snapshot_xmax() is invalid: %s" ,
18381839PQgetvalue (query_result ,0 ,recovery_xid_colno ));
18391840
18401841/* get&check recovery_time */
18411842if (!parse_time (PQgetvalue (query_result ,0 ,recovery_time_colno ),& result -> invocation_time , true))
18421843elog (ERROR ,
1843- "result of current_timestamp is invalid: %s" ,
1844+ "Result of current_timestamp is invalid: %s" ,
18441845PQgetvalue (query_result ,0 ,recovery_time_colno ));
18451846
18461847/* get stop_backup_lsn */
@@ -1898,13 +1899,13 @@ pg_stop_backup_write_file_helper(const char *path, const char *filename, const c
18981899join_path_components (full_filename ,path ,filename );
18991900fp = fio_fopen (full_filename ,PG_BINARY_W ,FIO_BACKUP_HOST );
19001901if (fp == NULL )
1901- elog (ERROR ,"can 't open %s file \"%s\": %s" ,
1902+ elog (ERROR ,"Can 't open %s file \"%s\": %s" ,
19021903error_msg_filename ,full_filename ,strerror (errno ));
19031904
19041905if (fio_fwrite (fp ,data ,len )!= len ||
19051906fio_fflush (fp )!= 0 ||
19061907fio_fclose (fp ))
1907- elog (ERROR ,"can 't write %s file \"%s\": %s" ,
1908+ elog (ERROR ,"Can 't write %s file \"%s\": %s" ,
19081909error_msg_filename ,full_filename ,strerror (errno ));
19091910
19101911/*
@@ -1943,7 +1944,7 @@ pg_stop_backup(InstanceState *instanceState, pgBackup *backup, PGconn *pg_startb
19431944
19441945/* Remove it ? */
19451946if (!backup_in_progress )
1946- elog (ERROR ,"backup is not in progress" );
1947+ elog (ERROR ,"Backup is not in progress" );
19471948
19481949pg_silent_client_messages (pg_startbackup_conn );
19491950
@@ -2098,7 +2099,7 @@ backup_files(void *arg)
20982099
20992100/* check for interrupt */
21002101if (interrupted || thread_interrupted )
2101- elog (ERROR ,"interrupted during backup" );
2102+ elog (ERROR ,"Interrupted during backup" );
21022103
21032104elog (progress ?INFO :LOG ,"Progress: (%d/%d). Process file \"%s\"" ,
21042105i + 1 ,n_backup_files_list ,file -> rel_path );