Re: Consolidate ItemPointer to Datum conversion functions

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Consolidate ItemPointer to Datum conversion functions
Date: 2023-02-06 10:11:54
Message-ID: e59df75a-b49f-9597-1e05-0271e3a03861@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message houzj.fnst@fujitsu.com 2023-02-06 10:13:36 RE: Perform streaming logical transactions by background workers and parallel apply
Previous Message Alvaro Herrera 2023-02-06 10:11:32 Re: pgbench: using prepared BEGIN statement in a pipeline could cause an error