summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier2025-12-15 01:34:18 +0000
committerMichael Paquier2025-12-15 01:34:18 +0000
commit33980eaa6df0b1358ba2e70edbe9efd56dbd7fa6 (patch)
tree56eb5edccc4f26b182df14156b4805074832eb79 /src
parent171198ff2a57fafe0772ec9d3dfbf061cffffacd (diff)
test_custom_stats: Fix compilation warning
I have fat-fingered an error message related to an offset while switching the code to use pgoff_t. Let's switch to the same error message used in the rest of the tree for similar failures with fseeko(), instead. Per buildfarm members running macos: longfin, sifaka and indri.
Diffstat (limited to 'src')
-rw-r--r--src/test/modules/test_custom_stats/test_custom_var_stats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/modules/test_custom_stats/test_custom_var_stats.c b/src/test/modules/test_custom_stats/test_custom_var_stats.c
index b15f2452f93..c71922dc4a8 100644
--- a/src/test/modules/test_custom_stats/test_custom_var_stats.c
+++ b/src/test/modules/test_custom_stats/test_custom_var_stats.c
@@ -331,7 +331,8 @@ test_custom_stats_var_from_serialized_data(const PgStat_HashKey *key,
/* Read data from the secondary statistics file, at the specified offset */
if (fseeko(fd_description, offset, SEEK_SET) != 0)
{
- elog(WARNING, "failed to seek to offset %ld in description file", offset);
+ elog(WARNING, "could not seek in file \"%s\": %m",
+ TEST_CUSTOM_AUX_DATA_DESC);
return false;
}