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

From Michael Paquier
Subject Defining dedicated macro to grab a relation's persistence
Date
Msg-id CAB7nPqSEB+HwiTXfWKQyPA7+9bjoLNxiO47QSrO3HCBSoQ0qFA@mail.gmail.com
Whole thread Raw
Responses Re: Defining dedicated macro to grab a relation's persistence  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
Hi all,

After looking at a patch of this commit fest using
rd_rel->relpersistence, I got a look at how many times this expression
was being used directly in the backend code and wondered if it would
not be useful to add a dedicated macro in rel.h to get the persistence
of a relation like in the patch attached. (Note: it is actually used
39 times).
Thoughts?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: pg_receivexlog --status-interval add fsync feedback
Next
From: Andres Freund
Date:
Subject: Re: Defining dedicated macro to grab a relation's persistence