pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Remove byte-masking macros for Datum conversion macros
2+ messages / 2 participants
[nested] [flat]
* pgsql: Remove byte-masking macros for Datum conversion macros
@ 2018-01-26 14:20 Peter Eisentraut <peter_e@gmx.net>
2018-02-02 14:52 ` Re: pgsql: Remove byte-masking macros for Datum conversion macros Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Peter Eisentraut @ 2018-01-26 14:20 UTC (permalink / raw)
To: pgsql-committers
Remove byte-masking macros for Datum conversion macros
As the comment there stated, these were needed for old-style
user-defined functions, but since we removed support for those, we don't
need this anymore.
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a6ef00b5c3c4a287e03b634d328529b69cc1e770
Modified Files
--------------
src/include/postgres.h | 90 +++++++++++++++++++-------------------------------
1 file changed, 34 insertions(+), 56 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgsql: Remove byte-masking macros for Datum conversion macros
2018-01-26 14:20 pgsql: Remove byte-masking macros for Datum conversion macros Peter Eisentraut <peter_e@gmx.net>
@ 2018-02-02 14:52 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2018-02-02 14:52 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-committers
Peter Eisentraut <peter_e@gmx.net> writes:
> Remove byte-masking macros for Datum conversion macros
Looking at the code now, I think there's at least one bad outcome of
this change: the behavior of CharGetDatum() is now ill-defined, because
we'll (probably) get different results on signed-char and unsigned-char
compilers. I think we'd be well advised to make that macro be
#define CharGetDatum(X) ((Datum) ((unsigned char) (X)))
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-02-02 14:52 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-26 14:20 pgsql: Remove byte-masking macros for Datum conversion macros Peter Eisentraut <peter_e@gmx.net>
2018-02-02 14:52 ` Tom Lane <tgl@sss.pgh.pa.us>
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