Re: Acceptable/Best formatting of callbacks (for pluggable storage)
От | Robert Haas |
---|---|
Тема | Re: Acceptable/Best formatting of callbacks (for pluggable storage) |
Дата | |
Msg-id | CA+TgmoZSGMUe62ACpmrJk7UmePYnR4G2daR1NVs18PyLEKP3Aw@mail.gmail.com обсуждение исходный текст |
Ответ на | Acceptable/Best formatting of callbacks (for pluggable storage) (Andres Freund <andres@anarazel.de>) |
Ответы |
Re: Acceptable/Best formatting of callbacks (for pluggable storage)
|
Список | 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 по дате отправления: