@@ -84,7 +84,7 @@ backup_stopbackup_callback(bool fatal, void *userdata)
84
84
*/
85
85
if (backup_in_progress )
86
86
{
87
- elog (WARNING ,"backup in progress,stop backup " );
87
+ elog (WARNING ,"A backupis in progress,stopping it. " );
88
88
/* don't care about stop_lsn in case of error */
89
89
pg_stop_backup_send (st -> conn ,st -> server_version ,current .from_replica ,exclusive_backup ,NULL );
90
90
}
@@ -711,8 +711,9 @@ do_backup(InstanceState *instanceState, pgSetBackupParams *set_backup_params,
711
711
char pretty_bytes [20 ];
712
712
713
713
if (!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)" );
716
717
717
718
/* Initialize PGInfonode */
718
719
pgNodeInit (& nodeInfo );
@@ -936,12 +937,12 @@ check_server_version(PGconn *conn, PGNodeInfo *nodeInfo)
936
937
937
938
if (nodeInfo -> server_version < 90500 )
938
939
elog (ERROR ,
939
- "server version is %s, must be %s or higher" ,
940
+ "Server version is %s, must be %s or higher" ,
940
941
nodeInfo -> server_version_str ,"9.5" );
941
942
942
943
if (current .from_replica && nodeInfo -> server_version < 90600 )
943
944
elog (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" ,
945
946
nodeInfo -> server_version_str ,"9.6" );
946
947
947
948
if (nodeInfo -> pgpro_support )
@@ -1050,7 +1051,7 @@ confirm_block_size(PGconn *conn, const char *name, int blcksz)
1050
1051
1051
1052
res = pgut_execute (conn ,"SELECT pg_catalog.current_setting($1)" ,1 ,& name );
1052
1053
if (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 ));
1054
1055
1055
1056
block_size = strtol (PQgetvalue (res ,0 ,0 ),& endp ,10 );
1056
1057
if ((endp && * endp )|| block_size != blcksz )
@@ -1439,7 +1440,7 @@ wait_wal_lsn(const char *wal_segment_dir, XLogRecPtr target_lsn, bool is_start_l
1439
1440
}
1440
1441
1441
1442
if (!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. "
1443
1444
"If continuous archiving is not set up, use '--stream' option to make autonomous backup. "
1444
1445
"Otherwise check that continuous archiving works correctly." );
1445
1446
@@ -1775,9 +1776,9 @@ pg_stop_backup_consume(PGconn *conn, int server_version,
1775
1776
{
1776
1777
pgut_cancel (conn );
1777
1778
#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" );
1779
1780
#else
1780
- elog (ERROR ,"interrupted during waiting for pg_stop_backup" );
1781
+ elog (ERROR ,"Interrupted during waiting for pg_stop_backup" );
1781
1782
#endif
1782
1783
}
1783
1784
@@ -1823,7 +1824,7 @@ pg_stop_backup_consume(PGconn *conn, int server_version,
1823
1824
case PGRES_TUPLES_OK :
1824
1825
break ;
1825
1826
default :
1826
- elog (ERROR ,"query failed: %s query was: %s" ,
1827
+ elog (ERROR ,"Query failed: %s query was: %s" ,
1827
1828
PQerrorMessage (conn ),query_text );
1828
1829
}
1829
1830
backup_in_progress = false;
@@ -1834,13 +1835,13 @@ pg_stop_backup_consume(PGconn *conn, int server_version,
1834
1835
/* get&check recovery_xid */
1835
1836
if (sscanf (PQgetvalue (query_result ,0 ,recovery_xid_colno ),XID_FMT ,& result -> snapshot_xid )!= 1 )
1836
1837
elog (ERROR ,
1837
- "result of txid_snapshot_xmax() is invalid: %s" ,
1838
+ "Result of txid_snapshot_xmax() is invalid: %s" ,
1838
1839
PQgetvalue (query_result ,0 ,recovery_xid_colno ));
1839
1840
1840
1841
/* get&check recovery_time */
1841
1842
if (!parse_time (PQgetvalue (query_result ,0 ,recovery_time_colno ),& result -> invocation_time , true))
1842
1843
elog (ERROR ,
1843
- "result of current_timestamp is invalid: %s" ,
1844
+ "Result of current_timestamp is invalid: %s" ,
1844
1845
PQgetvalue (query_result ,0 ,recovery_time_colno ));
1845
1846
1846
1847
/* get stop_backup_lsn */
@@ -1898,13 +1899,13 @@ pg_stop_backup_write_file_helper(const char *path, const char *filename, const c
1898
1899
join_path_components (full_filename ,path ,filename );
1899
1900
fp = fio_fopen (full_filename ,PG_BINARY_W ,FIO_BACKUP_HOST );
1900
1901
if (fp == NULL )
1901
- elog (ERROR ,"can 't open %s file \"%s\": %s" ,
1902
+ elog (ERROR ,"Can 't open %s file \"%s\": %s" ,
1902
1903
error_msg_filename ,full_filename ,strerror (errno ));
1903
1904
1904
1905
if (fio_fwrite (fp ,data ,len )!= len ||
1905
1906
fio_fflush (fp )!= 0 ||
1906
1907
fio_fclose (fp ))
1907
- elog (ERROR ,"can 't write %s file \"%s\": %s" ,
1908
+ elog (ERROR ,"Can 't write %s file \"%s\": %s" ,
1908
1909
error_msg_filename ,full_filename ,strerror (errno ));
1909
1910
1910
1911
/*
@@ -1943,7 +1944,7 @@ pg_stop_backup(InstanceState *instanceState, pgBackup *backup, PGconn *pg_startb
1943
1944
1944
1945
/* Remove it ? */
1945
1946
if (!backup_in_progress )
1946
- elog (ERROR ,"backup is not in progress" );
1947
+ elog (ERROR ,"Backup is not in progress" );
1947
1948
1948
1949
pg_silent_client_messages (pg_startbackup_conn );
1949
1950
@@ -2098,7 +2099,7 @@ backup_files(void *arg)
2098
2099
2099
2100
/* check for interrupt */
2100
2101
if (interrupted || thread_interrupted )
2101
- elog (ERROR ,"interrupted during backup" );
2102
+ elog (ERROR ,"Interrupted during backup" );
2102
2103
2103
2104
elog (progress ?INFO :LOG ,"Progress: (%d/%d). Process file \"%s\"" ,
2104
2105
i + 1 ,n_backup_files_list ,file -> rel_path );