Re: Defining dedicated macro to grab a relation's persistence - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Defining dedicated macro to grab a relation's persistence
Date
Msg-id 20141111153742.GS1791@alvin.alvh.no-ip.org
Whole thread Raw
In response to Re: Defining dedicated macro to grab a relation's persistence  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
List pgsql-hackers
Fabrízio de Royes Mello wrote:
> On Fri, Nov 7, 2014 at 11:12 AM, Andres Freund <andres@2ndquadrant.com>
> wrote:

> > I personally find the direct access actually more readable, so I'm not a
> > fan of further extending the scheme. Consistency with some other common
> > accessors is an argument though.
> 
> What you meant is "relation->rd_rel->relpersistence" is more readable than
> "RelationGetPersistence(relation)" ??

I too have a hard time getting excited about this change.  I'd just
leave it alone.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Fabrízio de Royes Mello
Date:
Subject: Re: Defining dedicated macro to grab a relation's persistence
Next
From: Andres Freund
Date:
Subject: Re: 9.4RC1 next week