Difference between revisions of "Pg stat statements module"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
<code>[[pg_stat_statements]]</code>
+
<code>[[pg_stat_statements]]</code> <ref>https://www.postgresql.org/docs/current/pgstatstatements.html</ref>
  
https://www.postgresql.org/docs/14/pgstatstatements.html
 
  
 
  [[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'

Revision as of 09:16, 3 July 2023

pg_stat_statements [1]


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

  • https://www.postgresql.org/docs/current/pgstatstatements.html
  • Advertising: