Thread
Commits
-
Consolidate ItemPointer to Datum conversion functions
- bd944884e92a 16.0 landed
-
Consolidate ItemPointer to Datum conversion functions
Peter Eisentraut <peter.eisentraut@enterprisedb.com> — 2023-02-06T09:54:07Z
Instead of defining the same set of macros several times, define it once in an appropriate header file. In passing, convert to inline functions.
-
Re: Consolidate ItemPointer to Datum conversion functions
Heikki Linnakangas <hlinnaka@iki.fi> — 2023-02-06T10:11:54Z
On 06/02/2023 11:54, Peter Eisentraut wrote: > Instead of defining the same set of macros several times, define it once > in an appropriate header file. In passing, convert to inline functions. Looks good to me. Did you consider moving PG_GETARG_ITEMPOINTER and PG_RETURN_ITEMPOINTER, too? They're only used in tid.c, but for most datatypes, we define the PG_GETARG and PG_RETURN macros in the same header file as the the Datum conversion functions. - Heikki
-
Re: Consolidate ItemPointer to Datum conversion functions
Peter Eisentraut <peter.eisentraut@enterprisedb.com> — 2023-02-09T08:33:16Z
On 06.02.23 11:11, Heikki Linnakangas wrote: > On 06/02/2023 11:54, Peter Eisentraut wrote: >> Instead of defining the same set of macros several times, define it once >> in an appropriate header file. In passing, convert to inline functions. > > Looks good to me. Did you consider moving PG_GETARG_ITEMPOINTER and > PG_RETURN_ITEMPOINTER, too? They're only used in tid.c, but for most > datatypes, we define the PG_GETARG and PG_RETURN macros in the same > header file as the the Datum conversion functions. Yeah that makes sense. Here is an updated patch for that.
-
Re: Consolidate ItemPointer to Datum conversion functions
Peter Eisentraut <peter.eisentraut@enterprisedb.com> — 2023-02-13T09:26:58Z
On 09.02.23 09:33, Peter Eisentraut wrote: > On 06.02.23 11:11, Heikki Linnakangas wrote: >> On 06/02/2023 11:54, Peter Eisentraut wrote: >>> Instead of defining the same set of macros several times, define it once >>> in an appropriate header file. In passing, convert to inline functions. >> >> Looks good to me. Did you consider moving PG_GETARG_ITEMPOINTER and >> PG_RETURN_ITEMPOINTER, too? They're only used in tid.c, but for most >> datatypes, we define the PG_GETARG and PG_RETURN macros in the same >> header file as the the Datum conversion functions. > > Yeah that makes sense. Here is an updated patch for that. committed