Search Postgresql Archives

Problematic read queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Team,

We have recently configured replica to our postgres instance.
Now the application team wants to move problematic read queries to read replica.
We have enabled pg_stat_statements extension.

1. How can I get most load causing queries from pg_stat_statements view whether we can calculate it from column 'rows' or 'shared_blk_hit' or 'max_time' or we have to look into any specific columns for that particular query?
2. I just want only read queries which should move to read replica: I could see a few select queries calling functions, but functions have insert,update statements so in that case whether it will be only select query or insert,update query?

Thanks in advance.

Regards,
DBA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux