-
Notifications
You must be signed in to change notification settings - Fork 769
Default query error #551
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
Comments
It'll be tricky as in postgres older release, the pg_stat_statements columns are according to the original sql. The only way to make it work for mixed pg version is to have condition. from pg9.6 |
@eduardoaemunoz I think we can use a |
I think #541 is related too. |
I'm pretty sure that |
Ah yes. coalase will not work. Off mind, sorry. We can do something like a |
Hello,
This query was giving me the following error:
I changed it to this:
SELECT t2.rolname, t3.datname, queryid, calls, total_exec_time / 1000 as total_time_seconds, min_exec_time / 1000 as min_time_seconds, max_exec_time / 1000 as max_time_seconds, mean_exec_time / 1000 as mean_time_seconds, stddev_exec_time / 1000 as stddev_time_seconds, rows, shared_blks_hit, shared_blks_read, shared_blks_dirtied, shared_blks_written, local_blks_hit, local_blks_read, local_blks_dirtied, local_blks_written, temp_blks_read, temp_blks_written, blk_read_time / 1000 as blk_read_time_seconds, blk_write_time / 1000 as blk_write_time_seconds FROM pg_stat_statements t1 JOIN pg_roles t2 ON (t1.userid=t2.oid) JOIN pg_database t3 ON (t1.dbid=t3.oid) WHERE t2.rolname != 'rdsadmin'
.Now it is working as expected. Do you need/want me to open a pull request?
Thank you!
The text was updated successfully, but these errors were encountered: