Add 'unit' parameter to ExplainProperty{Integer,Float}.

Andres Freund <andres@anarazel.de>

Commit: 7a50bb690b4837d29e715293c156cff2fc72885c
Author: Andres Freund <andres@anarazel.de>
Date: 2018-03-17T06:16:04Z
Releases: 11.0
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

Files

PathChange+/−
contrib/file_fdw/file_fdw.c modified +1 −1
src/backend/commands/explain.c modified +108 −91
src/include/commands/explain.h modified +4 −4

Discussion