mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user