Chapter 6. Of Tables, Constraints, and Indexes
Tables
In addition to the run-of-the-mill data table, PostgreSQL offers several kinds of tables that are rather unique: temporary, unlogged (demonstrated in Example 6-3), inherited (demonstrated in Example 6-2), and typed tables (demonstrated in Example 6-4).
Table Creation
In this section, we’ll demonstrate some common table creation examples. Most are similar to or exactly what you’ll find in other databases.
Example 6-1. Basic table creation
Get PostgreSQL: Up and Running now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.