5.7.2. The Public Schema .............................................................................................68
5.7.3. The Schema Search Path.....................................................................................68
5.7.4. Schemas and Privileges.......................................................................................69
5.7.5. The System Catalog Schema ..............................................................................69
5.7.6. Usage Patterns.....................................................................................................70
5.7.7. Portability............................................................................................................70
5.8. Inheritance .......................................................................................................................71
5.8.1. Caveats................................................................................................................73
5.9. Partitioning ......................................................................................................................74
5.9.1. Overview.............................................................................................................74
5.9.2. Implementing Partitioning ..................................................................................75
5.9.3. Managing Partitions............................................................................................78
5.9.4. Partitioning and Constraint Exclusion ................................................................79
5.9.5. Alternative Partitioning Methods........................................................................80
5.9.6. Caveats................................................................................................................81
5.10. Other Database Objects .................................................................................................82
5.11. Dependency Tracking....................................................................................................82
6. Data Manipulation........................................................................................................................84
6.1. Inserting Data ..................................................................................................................84
6.2. Updating Data..................................................................................................................85
6.3. Deleting Data...................................................................................................................86
7. Queries .........................................................................................................................................87
7.1. Overview .........................................................................................................................87
7.2. Table Expressions ............................................................................................................87
7.2.1. The FROM Clause.................................................................................................88
7.2.1.1. Joined Tables ..........................................................................................88
7.2.1.2. Table and Column Aliases......................................................................91
7.2.1.3. Subqueries ..............................................................................................93
7.2.1.4. Table Functions ......................................................................................93
7.2.2. The WHERE Clause...............................................................................................94
7.2.3. The GROUP BY and HAVING Clauses..................................................................95
7.2.4. Window Function Processing .............................................................................97
7.3. Select Lists.......................................................................................................................98
7.3.1. Select-List Items .................................................................................................98
7.3.2. Column Labels....................................................................................................98
7.3.3. DISTINCT ...........................................................................................................99
7.4. Combining Queries........................................................................................................100
7.5. Sorting Rows .................................................................................................................100
7.6. LIMIT and OFFSET........................................................................................................101
7.7. VALUES Lists .................................................................................................................102
7.8. WITH Queries .................................................................................................................103
8. Data Types..................................................................................................................................107
8.1. Numeric Types...............................................................................................................108
8.1.1. Integer Types.....................................................................................................109
8.1.2. Arbitrary Precision Numbers ............................................................................109
8.1.3. Floating-Point Types .........................................................................................110
8.1.4. Serial Types.......................................................................................................112
8.2. Monetary Types .............................................................................................................112
v