From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Change internal integer representation of Value node
Date: Tue, 13 Mar 2018 14:21:52 +0000
Message-ID: <E1evkoK-0006CA-CR@gemulon.postgresql.org> (raw)
Change internal integer representation of Value node
A Value node would store an integer as a long. This causes needless
portability risks, as long can be of varying sizes. Change it to use
int instead. All code using this was already careful to only store
32-bit values anyway.
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6cf86f435472b27bbc5e22c713bca08aa2d94af7
Modified Files
--------------
src/backend/nodes/outfuncs.c | 2 +-
src/backend/nodes/read.c | 14 +++++---------
src/backend/nodes/value.c | 2 +-
src/backend/parser/scan.l | 9 +++------
src/backend/utils/misc/guc.c | 2 +-
src/include/nodes/value.h | 6 +++---
src/interfaces/ecpg/preproc/pgc.l | 9 +++------
7 files changed, 17 insertions(+), 27 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Change internal integer representation of Value node
In-Reply-To: <E1evkoK-0006CA-CR@gemulon.postgresql.org>
References: <E1evkoK-0006CA-CR@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox