Loading topic
SELECT, WHERE, CREATE TABLE, and CREATE INDEX. You should also know that a B-tree index keeps values in sorted order so PostgreSQL can find matching rows without scanning the whole table.3 min readSELECT, WHERE, CREATE INDEX, and simple EXPLAIN output. This chapter uses PostgreSQL and an orders table with one million rows.2 min readEXPLAIN plans. You should also know that PostgreSQL uses multiversion concurrency control (MVCC), which lets transactions see appropriate versions of rows without blocking every reader.3 min readSELECT, CREATE INDEX, and EXPLAIN syntax. It also assumes that you understand that a B-tree index stores ordered references to table rows.2 min readEXPLAIN plan. You also need a table such as orders with an index that can support an index-only scan.2 min readEXPLAIN plans. The examples use the orders table and indexes from the earlier examples.2 min readEXPLAIN plan. The examples use an existing PostgreSQL table named orders.2 min readSELECT, WHERE, CREATE INDEX, B-tree indexes, and simple EXPLAIN output. You should also understand that PostgreSQL stores table rows in a heap and uses a visibility map to decide whether an index-only scan can skip heap checks.2 min readEXPLAIN plan. This chapter focuses on one design decision: which columns should control index navigation, and which columns should only provide query output.2 min readSELECT, WHERE, CREATE INDEX, B-tree indexes, and simple EXPLAIN plans. This chapter uses the orders table from the earlier examples.3 min readEXPLAIN output. You should know how UNIQUE prevents duplicate key values and how an index can help a WHERE clause.2 min readEXPLAIN plan.2 min readSELECT, B-tree indexes, and simple EXPLAIN plans. This chapter focuses on one question: can a particular PostgreSQL index access method return the columns needed by a query without reading the table heap?2 min read