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

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add 'unit' parameter to ExplainProperty{Integer,Float}.
Date: 2018-03-17 06:33:45
Message-ID: E1ex5PV-0002WB-1k@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2018-03-17 12:31:55 pgsql: Add ssl_passphrase_command setting
Previous Message Tom Lane 2018-03-16 20:04:12 pgsql: Fix query-lifespan memory leakage in repeatedly executed hash jo