Remove inappropriate inclusions of c.h and postgres_fe.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Apr 2025 20:58:57 +0000 (16:58 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Apr 2025 20:58:57 +0000 (16:58 -0400)
Per our usual policy, Postgres header files should not include these;
the decision as to which one to use is to be made in the calling .c
file instead.

These errors aren't particularly new, but I'm not feeling a need
to back-patch these changes; it's mostly just neatnik-ism.

src/bin/pg_combinebackup/copy_file.h
src/include/fe_utils/option_utils.h
src/include/fe_utils/query_utils.h

index 5a8517629c72c9a146e851e93bbadbf942d11db2..3779edd5677934947ea46236de8ff87638cd4766 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef COPY_FILE_H
 #define COPY_FILE_H
 
-#include "c.h"
 #include "common/checksum_helper.h"
 
 /*
index 82c093df996a7f3a3d0f53a196c781453de0bdcc..4504bbb36a83ce25b1c39fd976bbb65993471c2a 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef OPTION_UTILS_H
 #define OPTION_UTILS_H
 
-#include "postgres_fe.h"
-
 #include "common/file_utils.h"
 
 typedef void (*help_handler) (const char *progname);
index 42e911d720a92d24a515284a9d641f1813527fd6..4d7f7d6057330967c200db1a75f6189669c9e01e 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef QUERY_UTILS_H
 #define QUERY_UTILS_H
 
-#include "postgres_fe.h"
-
 #include "libpq-fe.h"
 
 extern PGresult *executeQuery(PGconn *conn, const char *query, bool echo);