aboutsummaryrefslogtreecommitdiff
path: root/contrib/file_fdw/file_fdw.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-03-16 23:13:12 -0700
committerAndres Freund <andres@anarazel.de>2018-03-16 23:16:04 -0700
commit7a50bb690b4837d29e715293c156cff2fc72885c (patch)
tree655f3c0729365d47156133e0d26644125bec7a6b /contrib/file_fdw/file_fdw.c
parentf3e4b95edb6cbf0cd41dc9ff0c884bfdc425e6fb (diff)
downloadpostgresql-7a50bb690b4837d29e715293c156cff2fc72885c.tar.gz
postgresql-7a50bb690b4837d29e715293c156cff2fc72885c.zip
Add 'unit' parameter to ExplainProperty{Integer,Float}.
This allows to deduplicate some existing code, but mainly avoids some duplication in upcoming commits. In passing, fix variable names indicating wrong unit (seconds instead of ms). Author: Andres Freund Discussion: https://postgr.es/m/20180314002740.cah3mdsonz5mxney@alap3.anarazel.de
Diffstat (limited to 'contrib/file_fdw/file_fdw.c')
-rw-r--r--contrib/file_fdw/file_fdw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c
index bf72a9108af..dce3be26179 100644
--- a/contrib/file_fdw/file_fdw.c
+++ b/contrib/file_fdw/file_fdw.c
@@ -622,7 +622,7 @@ fileExplainForeignScan(ForeignScanState *node, ExplainState *es)
if (!is_program &&
stat(filename, &stat_buf) == 0)
- ExplainPropertyInteger("Foreign File Size",
+ ExplainPropertyInteger("Foreign File Size", "b",
(int64) stat_buf.st_size, es);
}
}