From 7a50bb690b4837d29e715293c156cff2fc72885c Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Fri, 16 Mar 2018 23:13:12 -0700 Subject: 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 --- contrib/file_fdw/file_fdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/file_fdw/file_fdw.c') 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); } } -- cgit v1.2.3