Defining dedicated macro to grab a relation's persistence

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Defining dedicated macro to grab a relation's persistence
Date: 2014-11-07 13:08:33
Message-ID: CAB7nPqSEB+HwiTXfWKQyPA7+9bjoLNxiO47QSrO3HCBSoQ0qFA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
20141107_relation_persistence.patch application/x-patch 14.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-11-07 13:12:49 Re: Defining dedicated macro to grab a relation's persistence
Previous Message Fujii Masao 2014-11-07 12:53:28 Re: pg_receivexlog --status-interval add fsync feedback