diff options
author | Andres Freund <andres@anarazel.de> | 2018-03-16 23:13:12 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-03-16 23:16:04 -0700 |
commit | 7a50bb690b4837d29e715293c156cff2fc72885c (patch) | |
tree | 655f3c0729365d47156133e0d26644125bec7a6b /src/include/commands/explain.h | |
parent | f3e4b95edb6cbf0cd41dc9ff0c884bfdc425e6fb (diff) | |
download | postgresql-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 'src/include/commands/explain.h')
-rw-r--r-- | src/include/commands/explain.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h index 22a2004381b..6d3d94cae26 100644 --- a/src/include/commands/explain.h +++ b/src/include/commands/explain.h @@ -93,10 +93,10 @@ extern void ExplainPropertyListNested(const char *qlabel, List *data, ExplainState *es); extern void ExplainPropertyText(const char *qlabel, const char *value, ExplainState *es); -extern void ExplainPropertyInteger(const char *qlabel, int64 value, - ExplainState *es); -extern void ExplainPropertyFloat(const char *qlabel, double value, int ndigits, - ExplainState *es); +extern void ExplainPropertyInteger(const char *qlabel, const char *unit, + int64 value, ExplainState *es); +extern void ExplainPropertyFloat(const char *qlabel, const char *unit, + double value, int ndigits, ExplainState *es); extern void ExplainPropertyBool(const char *qlabel, bool value, ExplainState *es); |