From: Michael Paquier <michael@paquier.xyz>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Incorrect include file order in guc-file.l
Date: Wed, 2 Nov 2022 14:29:50 +0900
Message-ID: <Y2IATvRGo347Lvd1@paquier.xyz> (raw)
Hi all,
While reviewing a different patch, I have noticed that guc-file.l
includes sys/stat.h in the middle of the PG internal headers. The
usual practice is to have first postgres[_fe].h, followed by the
system headers and finally the internal headers. That's a nit, but
all the other files do that.
{be,fe}-secure-openssl.c include some exceptions though, as documented
there.
Thoughts?
--
Michael
Attachments:gucfile-include.patch (text/x-diff, 489B) downloaddiff --git a/src/backend/utils/misc/guc-file.l b/src/backend/utils/misc/guc-file.lindex 2436396306..caa9c902b9 100644--- a/src/backend/utils/misc/guc-file.l+++ b/src/backend/utils/misc/guc-file.l@@ -10,6 +10,7 @@
#include "postgres.h"
#include <ctype.h>
+#include <sys/stat.h>
#include <unistd.h>
#include "common/file_utils.h"
@@ -17,7 +18,6 @@
#include "mb/pg_wchar.h"
#include "miscadmin.h"
#include "storage/fd.h"
-#include <sys/stat.h>
#include "utils/memutils.h"
}
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: michael@paquier.xyz, pgsql-hackers@lists.postgresql.org
Subject: Re: Incorrect include file order in guc-file.l
In-Reply-To: <Y2IATvRGo347Lvd1@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox