EnterpriseDB / system_stats

A Postgres extension for exposing system metrics such as CPU, memory and disk information
Other
111 stars 24 forks source link

Building for PG 16 not working #10

Closed JamesInform closed 10 months ago

JamesInform commented 11 months ago

I am trying to build the extension for PG 16rc1.

It fails with an error.

Are you planning to update the extension any time soon?

dpage commented 11 months ago

Works fine for me. What error do you get?

$ bin/psql -p 5436 postgres
Pager usage is off.
psql (16rc1)
Type "help" for help.

postgres=# CREATE EXTENSION system_stats;
CREATE EXTENSION

postgres=# \x on
Expanded display is on.
postgres=# SELECT * FROM pg_sys_os_info();
-[ RECORD 1 ]-------+------------------------------------------------------------------------------------------------------
name                | Darwin
version             | Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000
host_name           | wopr.conx
domain_name         | 
handle_count        | 
process_count       | 521
thread_count        | 
architecture        | arm64
last_bootup_time    | 
os_up_since_seconds | 3638724
JamesInform commented 11 months ago

For building system stats extension, I used:

$ git clone https://github.com/EnterpriseDB/system_stats.git
$ cd system_stats
$ make
$ make install

I have attached the output showing the error. make_error.txt

dpage commented 10 months ago

ah, I see - thanks. I've submitted a PR and will ask one of my colleagues to review it: https://github.com/EnterpriseDB/system_stats/pull/11