Difference between revisions of "Pg stat statements module"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
  [[SELECT]] queryid, query from pg_stat_statements where query like 'YOUR_QUERY_GOES_HERE'
 
  [[SELECT]] queryid, query from pg_stat_statements where query like 'YOUR_QUERY_GOES_HERE'
  
  [[CREATE EXTENSION]] pg_stat_statements;
+
  [[CREATE EXTENSION pg_stat_statements]];
  
 
  [[CREATE EXTENSION]] IF NOT EXISTS pg_stat_statements WITH SCHEMA public;
 
  [[CREATE EXTENSION]] IF NOT EXISTS pg_stat_statements WITH SCHEMA public;

Revision as of 05:48, 25 October 2022

pg_stat_statements

https://www.postgresql.org/docs/14/pgstatstatements.html

SELECT queryid, query from pg_stat_statements where query like 'YOUR_QUERY_GOES_HERE'
CREATE EXTENSION pg_stat_statements;
CREATE EXTENSION IF NOT EXISTS pg_stat_statements WITH SCHEMA public;
ERROR: relation pg_stat_statements does not exist at character 18

Related

See also

Advertising: