@@ -506,7 +506,7 @@ do_backup_instance(void)
506
506
507
507
/*
508
508
* It`s illegal to take PTRACK backup if LSN from ptrack_control() is not equal to
509
- * start_backup LSN of previous backup
509
+ * stort_backup LSN of previous backup
510
510
*/
511
511
if (current .backup_mode == BACKUP_MODE_DIFF_PTRACK )
512
512
{
@@ -654,6 +654,7 @@ do_backup_instance(void)
654
654
}
655
655
656
656
/* Run threads */
657
+ elog (LOG , "Start transfering data files" );
657
658
for (i = 0 ; i < num_threads ; i ++ )
658
659
{
659
660
elog (VERBOSE , "Start thread num: %i" , i );
@@ -674,6 +675,7 @@ do_backup_instance(void)
674
675
pthread_join (backup_threads [i ], NULL );
675
676
pg_free (backup_threads_args [i ]);
676
677
}
678
+ elog (LOG , "Data files are transfered" );
677
679
678
680
/* clean previous backup file list */
679
681
if (prev_backup_filelist )
@@ -769,6 +771,14 @@ do_backup(time_t start_time)
769
771
current .checksum_version = get_data_checksum_version (true);
770
772
771
773
is_checksum_enabled = pg_checksum_enable ();
774
+
775
+ if (is_checksum_enabled )
776
+ elog (LOG , "This PostgreSQL instance initialized with data block checksums. "
777
+ "Data block corruption will be detected" );
778
+ else
779
+ elog (WARNING , "This PostgreSQL instance initialized without data block checksums. "
780
+ "pg_probackup have no way to detect data block corruption without them. "
781
+ "Reinitialize PGDATA with option '--data-checksums'." );
772
782
773
783
StrNCpy (current .server_version , server_version_str ,
774
784
sizeof (current .server_version ));
@@ -1956,7 +1966,7 @@ backup_files(void *arg)
1956
1966
current .backup_mode ))
1957
1967
{
1958
1968
file -> write_size = BYTES_INVALID ;
1959
- elog (LOG , "File \"%s\" was not copied to backup" , file -> path );
1969
+ elog (VERBOSE , "File \"%s\" was not copied to backup" , file -> path );
1960
1970
continue ;
1961
1971
}
1962
1972
}
@@ -1965,7 +1975,7 @@ backup_files(void *arg)
1965
1975
file ))
1966
1976
{
1967
1977
file -> write_size = BYTES_INVALID ;
1968
- elog (LOG , "File \"%s\" was not copied to backup" , file -> path );
1978
+ elog (VERBOSE , "File \"%s\" was not copied to backup" , file -> path );
1969
1979
continue ;
1970
1980
}
1971
1981
@@ -2403,6 +2413,7 @@ make_pagemap_from_ptrack(parray *files)
2403
2413
char * ptrack_nonparsed = NULL ;
2404
2414
size_t ptrack_nonparsed_size = 0 ;
2405
2415
2416
+ elog (LOG , "Compiling pagemap" );
2406
2417
for (i = 0 ; i < parray_num (files ); i ++ )
2407
2418
{
2408
2419
pgFile * file = (pgFile * ) parray_get (files , i );
@@ -2497,6 +2508,9 @@ make_pagemap_from_ptrack(parray *files)
2497
2508
}
2498
2509
}
2499
2510
}
2511
+ elog (LOG , "Pagemap compiled" );
2512
+ // res = pgut_execute(backup_conn, "SET client_min_messages = warning;", 0, NULL, true);
2513
+ // PQclear(pgut_execute(backup_conn, "CHECKPOINT;", 0, NULL, true));
2500
2514
}
2501
2515
2502
2516
0 commit comments