pg_prometheus icon indicating copy to clipboard operation
pg_prometheus copied to clipboard

add pg_prometheus and timescaledb ,start postgresql will throw error

Open FunkyYang opened this issue 6 years ago • 4 comments

I use prometheus adapter for store data with timescaledb. in my postrgresql.conf.

shared_preload_libraries ='pg_prometheus'

shared_preload_libraries ='timescaledb'

and pg_prometheus and timescaledb extension can be used but for psql: show shared_preload_libraries.it can be show timescaledb only why? some one help me?

FunkyYang avatar Jan 16 '19 17:01 FunkyYang

That's weird. What's the output of: select * from pg_settings where name = 'shared_preload_libraries' Did you restarted server after changing the config file?

What's the output of \dx in psql.

niksajakovljevic avatar Feb 21 '19 09:02 niksajakovljevic

/usr/bin/mkdir -p '/usr/local/pgsql/lib' /usr/bin/mkdir -p '/usr/local/pgsql/share/extension' /usr/bin/mkdir -p '/usr/local/pgsql/share/extension' /usr/bin/install -c -m 755 pg_prometheus.so '/usr/local/pgsql/lib/pg_prometheus.so' /usr/bin/install -c -m 644 .//pg_prometheus.control '/usr/local/pgsql/share/extension/' /usr/bin/install -c -m 644 .//sql/pg_prometheus--0.2.sql '/usr/local/pgsql/share/extension/' Job for postgresql.service failed because the control process exited with error code. See "systemctl status postgresql.service" and "journalctl -xe" for details.

lsxredrain avatar Jul 18 '19 10:07 lsxredrain

@lsxredrain is this still an issue? did you happen to restart postgres after you changed your config?

bboule avatar Sep 09 '19 14:09 bboule

Isn't it more correct to use line like: shared_preload_libraries ='pg_prometheus, timescaledb' ?

krisavi avatar Jan 22 '20 16:01 krisavi