Loading topic
CREATE TABLE, INSERT and SELECT and that you know what a primary key is. It also assumes you can read a basic EXPLAIN plan. Here you will learn how PostgreSQL models a partitioned table, how to create partitions with PARTITION OF, and how to inspect the r5 min readCREATE TABLE, INSERT and SELECT, and that you know what a primary key is. It also assumes you can read a basic EXPLAIN plan. It covers how range partitioning works, how to write correct bounds, and the mistakes that cause errors or surprising data placement5 min readCREATE TABLE, INSERT and SELECT, and that you know what a primary key is. You should also know that a partitioned table is a parent with no storage of its own, and that its rows live in child partitions. Range partitioning was covered in an earlier chapter, s6 min readCREATE TABLE and CREATE INDEX, read basic EXPLAIN output, and know that a primary key is a unique, non-null constraint. It also assumes you have seen PARTITION BY and PARTITION OF in the earlier chapters on range and list partitioning.6 min readPARTITION BY and PARTITION OF, and that you know the range, list and hash methods. You should also be able to read a basic EXPLAIN plan. The question here is which column or expression to partition on. That choice is hard to undo, be6 min readPARTITION BY and PARTITION OF. It also assumes you can read basic EXPLAIN output. The examples use the measurements table from the range partitioning chapter.6 min readEXPLAIN output, and which query shapes quietly defeat it.5 min readCREATE TABLE statements, know what a primary key an5 min readEXPLAIN output, and have seen PARTITION BY RANGE and PARTITION OF. It also assumes you know that a primary key or unique constraint on a partitioned table must include the partition key. Here you will see how an index on the pare5 min readEXPLAIN output. It builds on the measurements table from the range partitioning chapter.6 min readEXPLAIN output, and attach and detach partitions as covered earlier. It shows how to run a partitioned table over months and years: removing old data, creating future partitions, and keeping statistics and storage healthy.6 min readEXPLAIN output and that you know how PARTITION BY works for range, list and hash tables.5 min readEXPLAIN output, know how primary keys and unique7 min read