postgresqlpartioning
This is an old revision of the document!
Partitioning
List
CREATE TABLE USERS_PART ( user_id serial, username VARCHAR(50), user_role VARCHAR(1), created_date DATE DEFAULT CURRENT_DATE, last_updated_ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) PARTITION BY LIST(user_role); -- Inserts would currently fail as we haven't defined any partitions for this table CREATE TABLE USERS_PART_DEFAULT PARTITION OF USERS_PART DEFAULT;
postgresqlpartioning.1627318697.txt.gz · Last modified: 2025/03/08 22:23 (external edit)