Re: Ordering of header file inclusion
От
Andres Freund
Тема
Re: Ordering of header file inclusion
Дата
Msg-id
20191019211419.h6wjsash5tbkq6yk@alap3.anarazel.de
Ответ на
Re: Ordering of header file inclusion (Peter Eisentraut)
Список
Дерево обсуждения
Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion Tom Lane <tgl@sss.pgh.pa.us>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Ordering of header file inclusion Andres Freund <andres@anarazel.de>
Re: Ordering of header file inclusion Tom Lane <tgl@sss.pgh.pa.us>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion Tom Lane <tgl@sss.pgh.pa.us>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion Tom Lane <tgl@sss.pgh.pa.us>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion Amit Kapila <amit.kapila16@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Re: Ordering of header file inclusion vignesh C <vignesh21@gmail.com>
Hi, On 2019-10-19 21:50:03 +0200, Peter Eisentraut wrote: > diff --git a/contrib/bloom/blcost.c b/contrib/bloom/blcost.c > index f9fe57f..6224735 100644 > --- a/contrib/bloom/blcost.c > +++ b/contrib/bloom/blcost.c > @@ -12,10 +12,10 @@ > */ > #include "postgres.h" > > +#include "bloom.h" > #include "fmgr.h" > #include "utils/selfuncs.h" > > -#include "bloom.h" > > /* > * Estimate cost of bloom index scan. > > This class of change I don't like. > > The existing arrangement keeps "other" header files separate from the > header file of the module itself. It seems useful to keep that separate. If we were to do so, we ought to put bloom.h first and clearly seperated out, not last, as the former makes the bug of the the header not being standalone more obvious. I'm -1 on having a policy of putting the headers separate though, I feel that's too much work, and there's too many cases where it's not that clear which header that should be. Greetings, Andres Freund
В списке pgsql-hackers по дате отправления
От: Nikolay Samokhvalov
Дата: