Re: Convert varatt.h macros to static inline functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Convert varatt.h macros to static inline functions
Date: 2025-07-31 14:06:02
Message-ID: 2071302.1753970762@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter(at)eisentraut(dot)org> writes:
> I had this lying around as a draft patch, as part of my ongoing campaign
> to convert many complicated macros to static inline functions. Since
> the topic was mentioned in another thread [0], I cleaned up the patch so
> that we can all look at it.

I had just finished doing exactly that, per my idea in the other
thread of providing both pointer and Datum variants where needed.
I'll look more closely at yours in a bit, but here's mine.

regards, tom lane

Attachment Content-Type Size
wip-make-varatt-macros-inline-functions.patch text/x-diff 53.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2025-07-31 14:09:05 Re: Fix tab completion in v18 for ALTER DATABASE/USER/ROLE ... RESET
Previous Message Pavel Luzanov 2025-07-31 14:05:19 Re: Eagerly scan all-visible pages to amortize aggressive vacuum