diff --git a/sql/pgsql/inc/TPgSQLStatement.h b/sql/pgsql/inc/TPgSQLStatement.h
index 3d8bbd1353c09a29c7d61b4a37c87f7197bfc9ee..39e7b7f1b0f9805974bded73b6f3b7072a72dbfa 100644
--- a/sql/pgsql/inc/TPgSQLStatement.h
+++ b/sql/pgsql/inc/TPgSQLStatement.h
@@ -15,7 +15,6 @@
 #include "TSQLStatement.h"
 
 #include <libpq-fe.h>
-#include <pg_config.h> // to get PG_VERSION_NUM
 #ifdef USE_LDAP
 #undef USE_LDAP
 #endif