Remove pgrminclude annotations

Per git log, the last time someone tried to do something with
pgrminclude was around 2011.  Many (not all) of the "pgrminclude
ignore" annotations are of a newer date but seem to have just been
copied around during refactorings and file moves and don't seem to
reflect an actual need anymore.

There have been some parallel experiments with include-what-you-use
(IWYU) annotations, but these don't seem to correspond very strongly
to pgrminclude annotations, so there is no value in keeping the
existing ones even for that kind of thing.

So, wipe them all away.  We can always add new ones in the future
based on actual needs.

Discussion: https://www.postgresql.org/message-id/flat/2d4dc7b2-cb2e-49b1-b8ca-ba5f7024f05b%40eisentraut.org
This commit is contained in:
Peter Eisentraut 2024-12-24 11:48:08 +01:00
parent 6f3820f37a
commit 1eb7cb21c2
15 changed files with 19 additions and 20 deletions

View File

@ -33,7 +33,7 @@
#include "postmaster/autovacuum.h"
#include "storage/bufmgr.h"
#include "storage/freespace.h"
#include "tcop/tcopprot.h" /* pgrminclude ignore */
#include "tcop/tcopprot.h"
#include "utils/acl.h"
#include "utils/datum.h"
#include "utils/fmgrprotos.h"

View File

@ -51,7 +51,7 @@
#include "miscadmin.h"
#include "pgstat.h"
#include "storage/bulk_write.h"
#include "tcop/tcopprot.h" /* pgrminclude ignore */
#include "tcop/tcopprot.h"
#include "utils/rel.h"
#include "utils/sortsupport.h"
#include "utils/tuplesort.h"

View File

@ -46,7 +46,7 @@ static const struct rerr
{
/* the actual table is built from regex.h */
#include "regex/regerrs.h" /* pgrminclude ignore */
#include "regex/regerrs.h"
{
-1, "", "oops"
}, /* explanation special-cased in code */

View File

@ -29,8 +29,7 @@ static const char rcsid[] = "Id: inet_net_pton.c,v 1.4.2.3 2004/03/17 00:40:11 m
#include <assert.h>
#include <ctype.h>
#include "utils/builtins.h" /* pgrminclude ignore */ /* needed on some
* platforms */
#include "utils/builtins.h" /* needed on some platforms */
#include "utils/inet.h"

View File

@ -66,9 +66,9 @@
#include "access/xlog_internal.h"
#include "catalog/pg_authid_d.h"
#include "catalog/pg_class_d.h" /* pgrminclude ignore */
#include "catalog/pg_class_d.h"
#include "catalog/pg_collation_d.h"
#include "catalog/pg_database_d.h" /* pgrminclude ignore */
#include "catalog/pg_database_d.h"
#include "common/file_perm.h"
#include "common/file_utils.h"
#include "common/logging.h"

View File

@ -26,7 +26,7 @@
#include "fe_utils/query_utils.h"
#include "fe_utils/simple_list.h"
#include "fe_utils/string_utils.h"
#include "getopt_long.h" /* pgrminclude ignore */
#include "getopt_long.h"
#include "pgtime.h"
#include "storage/block.h"

View File

@ -11,9 +11,9 @@
#include "common/username.h"
#include "fe_utils/connect_utils.h"
#include "getopt_long.h" /* pgrminclude ignore */
#include "getopt_long.h"
#include "libpq-fe.h"
#include "pqexpbuffer.h" /* pgrminclude ignore */
#include "pqexpbuffer.h"
extern void splitTableColumnsSpec(const char *spec, int encoding,
char **table, const char **columns);

View File

@ -17,7 +17,7 @@
#include <netdb.h>
#include <sys/socket.h>
#include "libpq/pqcomm.h" /* pgrminclude ignore */
#include "libpq/pqcomm.h"
extern int pg_getaddrinfo_all(const char *hostname, const char *servname,

View File

@ -14,10 +14,10 @@
#define RELPATH_H
/*
* 'pgrminclude ignore' needed here because CppAsString2() does not throw
* an error if the symbol is not defined.
* Required here; note that CppAsString2() does not throw an error if the
* symbol is not defined.
*/
#include "catalog/catversion.h" /* pgrminclude ignore */
#include "catalog/catversion.h"
/*
* RelFileNumber data type identifies the specific relation file name.

View File

@ -11,7 +11,7 @@
#ifndef HBA_H
#define HBA_H
#include "libpq/pqcomm.h" /* pgrminclude ignore */ /* needed for NetBSD */
#include "libpq/pqcomm.h" /* needed for NetBSD */
#include "nodes/pg_list.h"
#include "regex/regex.h"

View File

@ -12,7 +12,7 @@
#ifndef IFADDR_H
#define IFADDR_H
#include "libpq/pqcomm.h" /* pgrminclude ignore */
#include "libpq/pqcomm.h"
typedef void (*PgIfAddrCallback) (struct sockaddr *addr,
struct sockaddr *netmask,

View File

@ -12,6 +12,6 @@
#ifndef PG_TRACE_H
#define PG_TRACE_H
#include "utils/probes.h" /* pgrminclude ignore */
#include "utils/probes.h"
#endif /* PG_TRACE_H */

View File

@ -38,7 +38,7 @@
#endif
/* Now we can include the original Snowball header.h */
#include "snowball/libstemmer/header.h" /* pgrminclude ignore */
#include "snowball/libstemmer/header.h"
/*
* Redefine standard memory allocation interface to pgsql's one.

View File

@ -79,7 +79,7 @@ typedef struct
} ExceptionLabelMap;
static const ExceptionLabelMap exception_label_map[] = {
#include "plerrcodes.h" /* pgrminclude ignore */
#include "plerrcodes.h"
{NULL, 0}
};

View File

@ -259,7 +259,7 @@ typedef struct
} TclExceptionNameMap;
static const TclExceptionNameMap exception_name_map[] = {
#include "pltclerrcodes.h" /* pgrminclude ignore */
#include "pltclerrcodes.h"
{NULL, 0}
};