pgsql: Change internal integer representation of Value node

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Change internal integer representation of Value node

Peter Eisentraut-2
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 <[hidden email]>

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(-)

Previous Thread Next Thread