Loading topic
psql, write SELECT and WHERE clauses, and read a simple EXPLAIN plan. You should also know that an index gives PostgreSQL another way to access table rows.2 min readSELECT and WHERE clauses, can run psql, and have a conceptual understanding of indexes and EXPLAIN. This chapter uses the orders table from the earlier example, after ANALYZE orders has run.2 min readSELECT, WHERE, and EXPLAIN in PostgreSQL. You should also know that the cost-based planner chooses a query plan by comparing estimated costs. The planner needs statistics to estimate how many rows a condition will match.2 min readpsql, and can read simple EXPLAIN output. PostgreSQL uses statistics collected by ANALYZE to estimate how many rows each query step will return. The planner compares those estimates with the cost of possible plans.3 min readpsql, read a basic execution plan, and understand indexes at a conceptual level. The focus is finding places where PostgreSQL expected the wrong number of rows.2 min readpsql, and can read simple EXPLAIN output. This chapter focuses on how PostgreSQL decides to refresh planner statistics automatically.2 min readSELECT and WHERE clauses, understand indexes at a conceptual level, and be able to run psql and read simple EXPLAIN output.2 min readANALYZE. For many columns, the default statistics target gives useful estimates. A column with many distinct values or an uneven distribution may need more detail.2 min readSELECT, WHERE, JOIN, CREATE TABLE, indexes, and simple EXPLAIN output. This chapter focuses on cases where PostgreSQL estimates several column conditions independently, even though the columns are related.2 min readSELECT, WHERE, JOIN, and CREATE TABLE statements. You should also be able to run psql and read a simple EXPLAIN plan.2 min readpsql, and can read simple EXPLAIN output. This chapter focuses on cases where PostgreSQL cannot keep planner statistics current in the usual way.2 min read