pgsql: Add 'unit' parameter to ExplainProperty{Integer,Float}. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Add 'unit' parameter to ExplainProperty{Integer,Float}.
Date
Msg-id E1ex5PV-0002WB-1k@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7a50bb690b4837d29e715293c156cff2fc72885c

Modified Files
--------------
contrib/file_fdw/file_fdw.c    |   2 +-
src/backend/commands/explain.c | 199 ++++++++++++++++++++++-------------------
src/include/commands/explain.h |   8 +-
3 files changed, 113 insertions(+), 96 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix query-lifespan memory leakage in repeatedly executed hashjo
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add ssl_passphrase_command setting