We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenteb2ea8d commit020258aCopy full SHA for 020258a
src/backend/storage/file/fd.c
@@ -1749,8 +1749,12 @@ FileRead(File file, char *buffer, int amount)
1749
{
1750
if (errno!=EINTR)
1751
1752
-elog(LOG,"Failed to read block %u position %u size %u from compressed file %s: %m",
1753
- (uint32)(VfdCache[file].seekPos /BLCKSZ), (uint32)seekPos,size,VfdCache[file].fileName);
+if (returnCode==0)
+elog(LOG,"Block %u position %u size %u is beyond end of compressed file %s",
1754
+ (uint32)(VfdCache[file].seekPos /BLCKSZ), (uint32)seekPos,size,VfdCache[file].fileName);
1755
+else
1756
+elog(LOG,"Failed to read block %u position %u size %u from compressed file %s: %m",
1757
1758
cfs_unlock_file(map);
1759
returnreturnCode;
1760
}