@@ -209,13 +209,13 @@ read_page_from_file(pgFile *file, BlockNumber blknum,
209
209
/* The block could have been truncated. It is fine. */
210
210
if (read_len == 0 )
211
211
{
212
- elog (VERBOSE , "File %s , block %u, file was truncated" ,
212
+ elog (VERBOSE , "File \"%s\" , block %u, file was truncated" ,
213
213
file -> path , blknum );
214
214
return 0 ;
215
215
}
216
216
else
217
217
{
218
- elog (WARNING , "File: %s , block %u, expected block size %u,"
218
+ elog (WARNING , "File: \"%s\" , block %u, expected block size %u,"
219
219
"but read %zu, try again" ,
220
220
file -> path , blknum , BLCKSZ , read_len );
221
221
return -1 ;
@@ -238,15 +238,15 @@ read_page_from_file(pgFile *file, BlockNumber blknum,
238
238
/* Page is zeroed. No need to check header and checksum. */
239
239
if (i == BLCKSZ )
240
240
{
241
- elog (VERBOSE , "File: %s blknum %u, empty page" , file -> path , blknum );
241
+ elog (VERBOSE , "File: \"%s\" blknum %u, empty page" , file -> path , blknum );
242
242
return 1 ;
243
243
}
244
244
245
245
/*
246
246
* If page is not completely empty and we couldn't parse it,
247
247
* try again several times. If it didn't help, throw error
248
248
*/
249
- elog (LOG , "File: %s blknum %u have wrong page header, try again" ,
249
+ elog (LOG , "File: \"%s\" blknum %u have wrong page header, try again" ,
250
250
file -> path , blknum );
251
251
return -1 ;
252
252
}
@@ -261,7 +261,7 @@ read_page_from_file(pgFile *file, BlockNumber blknum,
261
261
*/
262
262
if (pg_checksum_page (page , blkno ) != ((PageHeader ) page )-> pd_checksum )
263
263
{
264
- elog (LOG , "File: %s blknum %u have wrong checksum, try again" ,
264
+ elog (LOG , "File: \"%s\" blknum %u have wrong checksum, try again" ,
265
265
file -> path , blknum );
266
266
return -1 ;
267
267
}
@@ -342,7 +342,7 @@ prepare_page(ConnectionArgs *arguments,
342
342
343
343
if (result == -1 && is_ptrack_support && strict )
344
344
{
345
- elog (WARNING , "File %s , block %u, try to fetch via SQL" ,
345
+ elog (WARNING , "File \"%s\" , block %u, try to fetch via SQL" ,
346
346
file -> path , blknum );
347
347
break ;
348
348
}
@@ -389,7 +389,7 @@ prepare_page(ConnectionArgs *arguments,
389
389
else if (page_size != BLCKSZ )
390
390
{
391
391
free (ptrack_page );
392
- elog (ERROR , "File: %s , block %u, expected block size %d, but read %zu" ,
392
+ elog (ERROR , "File: \"%s\" , block %u, expected block size %d, but read %zu" ,
393
393
file -> path , absolute_blknum , BLCKSZ , page_size );
394
394
}
395
395
else
@@ -422,7 +422,7 @@ prepare_page(ConnectionArgs *arguments,
422
422
page_lsn &&
423
423
page_lsn < prev_backup_start_lsn )
424
424
{
425
- elog (VERBOSE , "Skipping blknum %u in file: %s " , blknum , file -> path );
425
+ elog (VERBOSE , "Skipping blknum %u in file: \"%s\" " , blknum , file -> path );
426
426
(* n_skipped )++ ;
427
427
return SkipCurrentPage ;
428
428
}
@@ -505,7 +505,7 @@ compress_and_backup_page(pgFile *file, BlockNumber blknum,
505
505
506
506
fclose (in );
507
507
fio_fclose (out );
508
- elog (ERROR , "File: %s , cannot write backup at block %u: %s" ,
508
+ elog (ERROR , "File: \"%s\" , cannot write backup at block %u: %s" ,
509
509
file -> path , blknum , strerror (errno_tmp ));
510
510
}
511
511
@@ -549,7 +549,7 @@ backup_data_file(backup_files_arg* arguments,
549
549
* There are no changed blocks since last backup. We want make
550
550
* incremental backup, so we should exit.
551
551
*/
552
- elog (VERBOSE , "Skipping the unchanged file: %s " , file -> path );
552
+ elog (VERBOSE , "Skipping the unchanged file: \"%s\" " , file -> path );
553
553
return false;
554
554
}
555
555
@@ -1298,7 +1298,7 @@ check_file_pages(pgFile *file, XLogRecPtr stop_lsn, uint32 checksum_version,
1298
1298
pg_crc32 crc ;
1299
1299
bool use_crc32c = backup_version <= 20021 || backup_version >= 20025 ;
1300
1300
1301
- elog (VERBOSE , "Validate relation blocks for file %s " , file -> path );
1301
+ elog (VERBOSE , "Validate relation blocks for file \"%s\" " , file -> path );
1302
1302
1303
1303
in = fopen (file -> path , PG_BINARY_R );
1304
1304
if (in == NULL )
0 commit comments