Re: Acceptable/Best formatting of callbacks (for pluggable storage) - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Acceptable/Best formatting of callbacks (for pluggable storage)
Date
Msg-id CA+TgmoZSGMUe62ACpmrJk7UmePYnR4G2daR1NVs18PyLEKP3Aw@mail.gmail.com
Whole thread Raw
In response to Acceptable/Best formatting of callbacks (for pluggable storage)  (Andres Freund <andres@anarazel.de>)
Responses Re: Acceptable/Best formatting of callbacks (for pluggable storage)  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Thu, Jan 10, 2019 at 11:45 PM Andres Freund <andres@anarazel.de> wrote:
>     void        (*relation_set_new_filenode) (Relation relation,
>                                               char persistence,
>                                               TransactionId *freezeXid,
>                                               MultiXactId *minmulti);

Honestly, I don't see the problem with that, really.  But you could
also use the style that is used in fdwapi.h, where we have a typedef
for each callback first, and then the actual structure just declares a
function pointer of each time.  That saves a bit of horizontal space
and might look a little nicer.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] generated columns
Next
From: Robert Haas
Date:
Subject: Re: Acceptable/Best formatting of callbacks (for pluggable storage)