Remove unused <poll.h> header file in pqcomm.c

From: Japin Li <japinli(at)hotmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Remove unused <poll.h> header file in pqcomm.c
Date: 2025-02-27 06:34:24
Message-ID: ME0P300MB04458874441B6CC8D0B34C80B6CD2@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Yuki Seino 2025-02-27 06:44:18 Re: Add “FOR UPDATE NOWAIT” lock details to the log.
Previous Message vignesh C 2025-02-27 06:12:37 Re: Add missing tab completion for VACUUM and ANALYZE with ONLY option