PostgreSQL - Table Partitioning
Consider the following setup:
What will be the result of the SELECT query?
CREATE TABLE inventory (item_id INT, restock_date DATE) PARTITION BY RANGE (restock_date);
CREATE TABLE inventory_2024 PARTITION OF inventory FOR VALUES FROM ('2024-01-01') TO ('2025-01-01');
INSERT INTO inventory VALUES (100, '2024-07-20');
SELECT * FROM inventory_2024;
What will be the result of the SELECT query?
