partition
Default partition
Catch unmatched keys in a range or list partition hierarchy. Adding a new explicit partition may require validating the default table; hash partitioning has no default.
Formal Syntax & Structure
sql syntaxsql
CREATE TABLE child PARTITION OF parent DEFAULT;Working Example
Example Snippetsql
-- Run independently in a fresh disposable PostgreSQL database/schema.CREATE TABLE tickets(region text) PARTITION BY LIST(region);CREATE TABLE tickets_other PARTITION OF tickets DEFAULT;INSERT INTO tickets VALUES ('APAC');SELECT count(*) FROM tickets_other;