timescale / pg_prometheus

PostgreSQL extension for Prometheus data
Apache License 2.0
213 stars 44 forks source link

Building on Windows #47

Open krisavi opened 4 years ago

krisavi commented 4 years ago

How to build and make it work on Windows?

krisavi commented 4 years ago

I tried to get it to work by using some of the cmake scripts as expample from timescaledb, only using src that is existing in pg_postgres, but get to point where I have the dll and it seems to be even loaded, but it is reporting in logs:

2020-01-22 17:27:20.971 CET [6508] FATAL:  could not find function "prom_in" in file "E:/Program Files/PostgreSQL/11/lib/pg_prometheus.dll"
2020-01-22 17:27:20.971 CET [6508] STATEMENT:  CREATE EXTENSION IF NOT EXISTS pg_prometheus

I got mine to build and work. Will find time to clean up and make a PR. Probably it has to be checked and cleaned up even further. The Cmake just ignores tests. I did not bother making them work.

bryanasdev000 commented 4 years ago

Hey buddy @krisavi , can you specify the packages needed for Windows building? This can help #51 . Thanks in advanced.

Jasonrve commented 4 years ago

Hi @krisavi I am also trying to build this for windows.

Mind sharing how you got this right?

krisavi commented 4 years ago

Hi, @Jasonrve and @bryanasdev000,

Sorry for the delay with PR. I will look up where I saved the code and push to git and make a PR even if it is quite unclean. It was done for version 0.2.2 so some things I might have to update now. For me the need to use it ended as the company I used it ended work relationship with me, so I kind of forgot to push it up.