pgsql: Make ExplainPropertyInteger accept 64bit input, remove *Long var

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make ExplainPropertyInteger accept 64bit input, remove *Long var
Date: 2018-03-17 06:33:45
Message-ID: E1ex5PV-0002WA-1d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make ExplainPropertyInteger accept 64bit input, remove *Long variant.

'long' is not useful type across platforms, as it's 32bit on 32 bit
platforms, and even on some 64bit platforms (e.g. windows) it's still
only 32bits wide.

As ExplainPropertyInteger should never be performance critical, change
it to accept a 64bit argument and remove ExplainPropertyLong.

Author: Andres Freund
Discussion: https://postgr.es/m/20180314164832.n56wt7zcbpzi6zxe@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f3e4b95edb6cbf0cd41dc9ff0c884bfdc425e6fb

Modified Files
--------------
contrib/file_fdw/file_fdw.c | 4 +--
src/backend/commands/explain.c | 71 +++++++++++++++++++++---------------------
src/include/commands/explain.h | 4 +--
3 files changed, 39 insertions(+), 40 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