Skip to content

JavadHosseini/postgres-queries-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this code uses pg_stat_statements extension to monitor users queries

to use pg_stat_statements you should follow steps below:

  1. CREATE EXTENSION pg_stat_statements;

in the database you want to monitor.

  1. Additionally you will have to edit the following line in postgresql.conf

shared_preload_libraries = ''

To

shared_preload_libraries = 'pg_stat_statements'

  1. A restart of the PSQL service is required.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published