Loading topic
SELECT, ORDER BY, and LIMIT. You should also know how to connect to PostgreSQL with psql or another SQL client. You do not need to have enabled pg_stat_statements yet.3 min readpsql or another SQL client, and understand that a query plan describes how PostgreSQL runs a query. You also need access to PostgreSQL configuration, or a database administrator who can change it.2 min readSELECT, ORDER BY, and LIMIT, and understand that PostgreSQL can produce a query plan for a statement.2 min readpsql or another SQL client. You also need access to a database where pg_stat_statements is enabled. This chapter uses PostgreSQL 13 or later, where execution-time columns are named total_exec_time and mean_exec_time.2 min readpsql or another SQL client, and understand that PostgreSQL executes a query according to a query plan. This chapter uses the pg_stat_statements view. The view stores cumulative statistics for normalized SQL statements.3 min readpg_stat_statements, and have a general idea of what a query plan is. The goal is to choose the right ranking for the performance question you are asking.2 min readpg_stat_statements. You should also understand that PostgreSQL reads data in fixed-size units called blocks. A buffer is an area of memory that holds a database block. PostgreSQL tries to serve repeated reads from its shared buffer cache instead of reading s2 min readSELECT statements, and understand that a query plan describes how PostgreSQL executes a query. You also need access to a PostgreSQL database where you can run diagnostic queries.2 min readpsql or another PostgreSQL client. This chapter uses pg_stat_statements after it has been enabled and created in the current database.2 min readSELECT, WHERE, ORDER BY, and LIMIT syntax. You should also know that PostgreSQL can use memory for sorting and joining rows.2 min readpg_stat_statements, and understand that a query plan describes how PostgreSQL executes a statement. You will use execution-time statistics to find queries whose performance changes substantially from one call to another.2 min readpsql or another SQL client. You should also understand that PostgreSQL configuration changes may require a reload or a server restart.2 min readSELECT statements, can use psql, and understand that PostgreSQL roles control access. This chapter focuses on who can read pg_stat_statements, not on enabling the extension.2 min readpg_stat_statements to rank queries. This chapter focuses on what the extension cannot tell you and how its settings affect the results.2 min read