Re: Convert *GetDatum() and DatumGet*() macros to inline functions
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Aleksander Alekseev <aleksander@timescale.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>,
Tom Lane <tgl@sss.pgh.pa.us>, Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Date: 2022-08-30T14:27:48Z
Lists: pgsql-hackers
On Tue, Aug 30, 2022 at 10:25 AM Aleksander Alekseev <aleksander@timescale.com> wrote: > > Yeah, I don't see a reason to back-patch a change like this > > Maybe we should consider backporting at least 0001 patch, partially > perhaps? I believe if fixes pretty cursed pieces of code, e.g: > > ``` > pg_cryptohash_ctx *context = > - (pg_cryptohash_ctx *) PointerGetDatum(foundres); > + (pg_cryptohash_ctx *) DatumGetPointer(foundres); > ``` Sure, back-porting the bug fixes would make sense to me. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
Convert *GetDatum() and DatumGet*() macros to inline functions
- c8b2ef05f481 16.0 landed
- 595836e99bf1 16.0 landed
-
Fix incorrect uses of Datum conversion macros
- 6bcda4a72123 16.0 landed