PostgreSQL - Table Partitioning
You have this partitioned table:
Which error will occur if you run this?
CREATE TABLE logs (id SERIAL, log_date DATE) PARTITION BY RANGE (log_date);
CREATE TABLE logs_2023 PARTITION OF logs FOR VALUES FROM ('2023-01-01') TO ('2024-01-01');Which error will occur if you run this?
INSERT INTO logs (log_date) VALUES ('2022-12-31');