Mastodon - pghero recommendation
-
Hi,
When I check pghero, it suggests the following:
"Query stats must be enabled for slow queries"
Query Stats
Make them available by adding the following lines to postgresql.conf:shared_preload_libraries = 'pg_stat_statements'
pg_stat_statements.track = all
Restart the server for the changes to take effect.
I can't see any way to add this or change these settings...
Any thoughts?
Thanks,
Shane. -
Hi,
When I check pghero, it suggests the following:
"Query stats must be enabled for slow queries"
Query Stats
Make them available by adding the following lines to postgresql.conf:shared_preload_libraries = 'pg_stat_statements'
pg_stat_statements.track = all
Restart the server for the changes to take effect.
I can't see any way to add this or change these settings...
Any thoughts?
Thanks,
Shane.@shanelord01 I guess this is meant for development setups. It has to be enabled in the postgesql addon (which is in a container named
postgresql). Currently, there is no easy way to persist changes to the postgresql addon.If you like, you can
docker exec -ti postgresql /bin/bashand then edit/run/postgresql/postgresql.confand thensupervisorctl restart postgresql. As mentioned, any changes will be overwritten on container restart or server restart. -
@shanelord01 I guess this is meant for development setups. It has to be enabled in the postgesql addon (which is in a container named
postgresql). Currently, there is no easy way to persist changes to the postgresql addon.If you like, you can
docker exec -ti postgresql /bin/bashand then edit/run/postgresql/postgresql.confand thensupervisorctl restart postgresql. As mentioned, any changes will be overwritten on container restart or server restart.@girish Thanks for this. Should I just ignore the recommendation or will it do something beneficial to my instance?
-
@girish Thanks for this. Should I just ignore the recommendation or will it do something beneficial to my instance?
-
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login