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

From Michael Paquier
Subject Re: removing unnecessary get_att*() lsyscache functions
Date
Msg-id 20181023001117.GC1651@paquier.xyz
Whole thread Raw
In response to Re: removing unnecessary get_att*() lsyscache functions  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: removing unnecessary get_att*() lsyscache functions  (Andres Freund <andres@anarazel.de>)
Re: removing unnecessary get_att*() lsyscache functions  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
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.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Function to promote standby servers
Next
From: Andres Freund
Date:
Subject: Re: removing unnecessary get_att*() lsyscache functions