Setup System_Stats extention on Windows

From: Mohamed Raafat <mohamed(dot)raafat(dot)abdelkader(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Setup System_Stats extention on Windows
Date: 2023-03-13 23:46:15
Message-ID: CAF_Ap-Y1_+o_vOoxWWmidCnTStsvnExTdrEfpGhjpQrkiek69w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,
I'm new to Postgres and pgAdmin.

I am trying to build the "Postgres System Stats extension". First, I've set
PG_INCLUDE_DIR and PG_LIB_DIR environment variables as follows:
PG_INCLUDE_DIR=C:\Program Files\PostgreSQL\15\include
PG_LIB_DIR=C:\Program Files\PostgreSQL\15\lib

But when I build it on Windows cmd using the *command: msbuild
system_stats.vcxproj /p:configuration=debug,*
it gives me the following error: *'fatal error C1083: Cannot open include
file: 'postgres.h': No such file or directory'.*
I've found that file: 'postgres.h' exists already on my path: C:\Program
Files\PostgreSQL\15\include\server.

Thanks,
Mohamed

[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&>
14/03/23,
01:45:54

Browse pgsql-admin by date

  From Date Subject
Next Message James Pang (chaolpan) 2023-03-14 07:25:23 Oracle characterset and collation to Postgresql
Previous Message Ron 2023-03-13 12:56:23 Re: Tooling for per table autovacuum tuning