Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using coroot-pg-agent with PostgreSQL v.15 #20

Open
doonydoo opened this issue Apr 4, 2024 · 0 comments
Open

Using coroot-pg-agent with PostgreSQL v.15 #20

doonydoo opened this issue Apr 4, 2024 · 0 comments

Comments

@doonydoo
Copy link

doonydoo commented Apr 4, 2024

Hello,

I tried to use coroot-pg-agent for PostgreSQL v.14, it worked perfect according to your instructions.
But with PostgreSQL v.15 I've cought the problem:

[collector.go:166] pq: relation "pg_stat_statements" does not exist

The solvation I've found is:
set up

ALTER USER <USER> SET SEARCH_PATH TO <USER>,pg_catalog,public;

in database,
and disable SSL mode when starting the container (because I found the warning in logs "SSL mode is disabled!")

DSN: "postgresql:// <USER>: <PASSWORD>@<HOST>:<PORT>/<DATABASE_NAME>?sslmode=disable&connect_timeout=1&statement_timeout=30000"

It would be great if you add this notes to the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant