powa-team / powa

PostgreSQL Workload Analyzer
http://powa.readthedocs.io/
PostgreSQL License
764 stars 57 forks source link

requires btree_gist #49

Closed shribe closed 9 years ago

shribe commented 9 years ago

The install docs do not mention that btree_gist is required.

rdunklau commented 9 years ago

The requirement is implied in the quickstart guide by using the provided install_all.sh script, and the instruction is clearly stated in the powa-archivist installation guide.

I made the dependency on postgresql contrib modules more explicit in the above mentioned commit.

Feel free to re-open the issue if its not sufficient.

shribe commented 9 years ago

??? install_all.sh does not reference btree_gist at all. The docs (& install_all.sh) still say to edit postgresql.conf thus:

shared_preload_libraries='pg_stat_statements,powa,pg_stat_kcache,pg_qualstats'

which is incorrect. While the changes to the docs make it clear that contrib modules are needed, it would be nice to specify which ones need to be installed.

rdunklau commented 9 years ago

I must be missing something: what is wrong with the shared_preload_libraries suggested configuration ? btree_gist should not be loaded at startup.

The install_all.sh script executes the install_all.sql file, which creates the btree_gist extension.

As per your suggestion, I added the specific modules in the documentation.

shribe commented 9 years ago

"btree_gist should not be loaded at startup"

I did not realize that.

"The install_all.sh script executes the install_all.sql file, which creates the btree_gist extension."

That cannot happen if it's not built--you get an error. So, basically, if you follow the instructions with a clean PG build, you get an error about btree_gist not being available. (As well as pg_stat_statements, but that's more clear because it's at least mentioned.)

rdunklau commented 9 years ago

I hope the latest commit took care of that. Can you confirm that it is sufficient ?

shribe commented 9 years ago

Yes. That would be enough of a clue for those who build from source.

rdunklau commented 9 years ago

Thank you for taking the time to report this issue and providing feedback !