Re: removing unnecessary get_att*() lsyscache functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: removing unnecessary get_att*() lsyscache functions
Date
Msg-id 072e1f52-b3d9-bf01-6a37-3d89aabc3fd3@2ndquadrant.com
Whole thread Raw
In response to Re: removing unnecessary get_att*() lsyscache functions  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On 23/10/2018 02:11, Michael Paquier wrote:
> On Mon, Oct 22, 2018 at 07:12:28PM +0200, Peter Eisentraut wrote:
>> OK, slightly reworked version attached.
> 
> +   attTup = (Form_pg_attribute) GETSTRUCT(tuple);
>     attnum = ((Form_pg_attribute) GETSTRUCT(tuple))->attnum;
> 
> No need to call twice GETSTRUCT here..  The rest looks fine.

Fixed that, and committed, thanks.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Erik Rijkers
Date:
Subject: Re: [HACKERS] proposal: schema variables
Next
From: Peter Geoghegan
Date:
Subject: Re: Making all nbtree entries unique by having heap TIDs participatein comparisons