Re: pgsql: Fix headerscheck failure in replication/worker_internal.h

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Fix headerscheck failure in replication/worker_internal.h
Date: 2021-11-16 20:16:13
Message-ID: CAOuzzgohQerBnqgwyuAEos6O5-oAxSR_natTjr2=wuSn-ewmEg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Greetings,

On Tue, Nov 16, 2021 at 15:12 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> > On 2021-Nov-16, Stephen Frost wrote:
> >> Not against possibly changing that but I don’t get the point of
> including
> >> be-gssapi-common.h if it’s not enabled in the build and typically if
> GSSAPI
> >> is possible and the reason for including be-gssapi-common.h then there’s
> >> other things that need to be under a ifdef, again, as in auth.c
>
> > BTW, this is exactly why my first suggestion was to add an exclusion
> > rule to headerscheck so that be-gssapi-common.h is not verified by that
> > script. After re-reading your response, that looks like a reasonable
> > answer too.
>
> I think adding #ifdef ENABLE_GSS as per your prior message is better.
> Headers have little business making assumptions about the context in
> which they're included --- which is exactly why headerscheck exists ---
> so I disagree with Stephen's argument. In any case I am not in favor of
> making random exclusions from that script's testing.

I don’t feel all that strongly either way, so if you’d rather have it that
way then that’s fine. Will still need the other ifdefs too anyway though,
but I guess it isn’t that big of a deal.

Thanks,

Stephen

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-11-17 02:05:48 pgsql: Remove global variable "LastRec" in xlog.c
Previous Message Tom Lane 2021-11-16 20:12:07 Re: pgsql: Fix headerscheck failure in replication/worker_internal.h

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2021-11-16 20:19:19 Re: RecoveryInProgress() has critical side effects
Previous Message Tom Lane 2021-11-16 20:12:07 Re: pgsql: Fix headerscheck failure in replication/worker_internal.h