Remove unused header file in pqcomm.c - Mailing list pgsql-hackers

From Japin Li
Subject Remove unused header file in pqcomm.c
Date
Msg-id ME0P300MB04458874441B6CC8D0B34C80B6CD2@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
Whole thread Raw
List pgsql-hackers
Hi, all

When I read the code of pqcomm.c, I find we don't use anything from <pool.h>
after commit cba5b994c99.  Maybe we should remove the include instruction.

diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index e5171467de1..744699ec35a 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -53,9 +53,6 @@
  */
 #include "postgres.h"
 
-#ifdef HAVE_POLL_H
-#include <poll.h>
-#endif
 #include <signal.h>
 #include <fcntl.h>
 #include <grp.h>


-- 
Regrads,
Japin Li



pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Add missing tab completion for VACUUM and ANALYZE with ONLY option
Next
From: Yuki Seino
Date:
Subject: Re: Add “FOR UPDATE NOWAIT” lock details to the log.