Skip to content

Commit 7a50bb6

Browse files
committed
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
1 parent f3e4b95 commit 7a50bb6

File tree

3 files changed

+113
-96
lines changed

3 files changed

+113
-96
lines changed

contrib/file_fdw/file_fdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ fileExplainForeignScan(ForeignScanState *node, ExplainState *es)
622622

623623
if (!is_program &&
624624
stat(filename, &stat_buf) == 0)
625-
ExplainPropertyInteger("Foreign File Size",
625+
ExplainPropertyInteger("Foreign File Size", "b",
626626
(int64) stat_buf.st_size, es);
627627
}
628628
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy