Re: removing unnecessary get_att*() lsyscache functions

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: removing unnecessary get_att*() lsyscache functions
Date: 2018-10-23 00:11:17
Message-ID: 20181023001117.GC1651@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-10-23 00:19:44 Re: removing unnecessary get_att*() lsyscache functions
Previous Message Michael Paquier 2018-10-22 23:31:21 Re: Function to promote standby servers