Re: Unused header file inclusion
От | Andres Freund |
---|---|
Тема | Re: Unused header file inclusion |
Дата | |
Msg-id | 20190816230716.jndus364yfcz4sr6@alap3.anarazel.de обсуждение исходный текст |
Ответ на | Re: Unused header file inclusion (Andres Freund <andres@anarazel.de>) |
Ответы |
Re: Unused header file inclusion
|
Список | pgsql-hackers |
Hi, On 2019-08-03 12:37:33 -0700, Andres Freund wrote: > Think the first three are pretty clearly a good idea, I'm a bit less > sanguine about the fourth: > Headers like utils/timestamp.h are often included just because we need a > TimestampTz type somewhere, or call GetCurrentTimestamp(). Approximately > none of these need the PG_GETARG_* macros, which are the only reason for > including fmgr.h in these headers. As they're macros that's not > actually needed, although I think normally good style. But I' think here > avoiding exposing fmgr.h to more headers is a bigger win. I still think the fourth is probably worthwhile, but I don't feel confident enough to do it without somebody else +0.5'ing it... I've pushed the other ones. Greetings, Andres Freund
В списке pgsql-hackers по дате отправления: