]> granicus.if.org Git - postgresql/commit
Change internal integer representation of Value node
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 12 Mar 2018 16:17:58 +0000 (12:17 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 13 Mar 2018 13:56:25 +0000 (09:56 -0400)
commit6cf86f435472b27bbc5e22c713bca08aa2d94af7
treec1722f6bb851bcb468a2d01edf23f872c0b89597
parent377b5ac4845c5ffbf992ee95c32d7d16d38b9081
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>
src/backend/nodes/outfuncs.c
src/backend/nodes/read.c
src/backend/nodes/value.c
src/backend/parser/scan.l
src/backend/utils/misc/guc.c
src/include/nodes/value.h
src/interfaces/ecpg/preproc/pgc.l