powa-team/pg_stat_kcache

Have an error when I include the pg_stat_kcache extension

HankDrews opened this issue · 8 comments

I'm receiving the following error after I log into the Web interface:

powa_take_snapshot(0): function "powa_kcache_snapshot" failed: function pg_stat_kcache() does not exist

I've installed both the pg_stat_statements and pg_stat_kcache extension into all databases I'm monitoring. Other than this error, everything else appears to be working and the graphs are updating normally.

I'm running Postgresql 14.5, powa 4.1.4 and powa-web 4.1.4. Let me know if you need further information.

rjuju commented

Hello

First, are you using powa in local mode or remote mode?

The, powa only requires pg_stat_statements and pg_stat_kcache (or any other stat extension) to be installed in the dedicated powa databases (on both the repository server and remote servers if you're using remote mode). The error seems to indicate that the extension isn't present in the powa database.

rjuju commented

Ok, so having powa in shared_preload_libraries, and configuring powa.frequency (and maybe others) in the postgresql.conf file?

Can you show the output of \dx connected on the powa database?

rjuju commented

That's a lot of extensions!

Anyway, it seems that you installed pg_stat_kcache in the information_schema schema and not public. I would advise you to drop the extension and recreate it in the public schema. Once done, the next snapshot should work as intended.

rjuju commented

Great news, thanks a lot!