Re: Consolidate ItemPointer to Datum conversion functions - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Consolidate ItemPointer to Datum conversion functions
Date
Msg-id e59df75a-b49f-9597-1e05-0271e3a03861@iki.fi
Whole thread Raw
In response to Consolidate ItemPointer to Datum conversion functions  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: Consolidate ItemPointer to Datum conversion functions
List pgsql-hackers
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




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error
Next
From: "houzj.fnst@fujitsu.com"
Date:
Subject: RE: Perform streaming logical transactions by background workers and parallel apply