Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mn4ob-0006YG-S6 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 20:12:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mn4oY-0007rA-IM for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 20:12:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mn4oY-0007r1-8k for pgsql-hackers@lists.postgresql.org; Tue, 16 Nov 2021 20:12:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mn4oR-0007Ur-NG for pgsql-hackers@lists.postgresql.org; Tue, 16 Nov 2021 20:12:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AGKC7N72256008; Tue, 16 Nov 2021 15:12:08 -0500 From: Tom Lane To: Alvaro Herrera cc: Stephen Frost , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Fix headerscheck failure in replication/worker_internal.h In-reply-to: <202111161816.bncq4ckt6ahl@alvherre.pgsql> References: <202111161816.bncq4ckt6ahl@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 16 Nov 2021 15:16:45 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2256006.1637093527.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 16 Nov 2021 15:12:07 -0500 Message-ID: <2256007.1637093527@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > On 2021-Nov-16, Stephen Frost wrote: >> Not against possibly changing that but I don=E2=80=99t get the point of= including >> be-gssapi-common.h if it=E2=80=99s not enabled in the build and typical= ly if GSSAPI >> is possible and the reason for including be-gssapi-common.h then there=E2= =80=99s >> 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. regards, tom lane