PostgreSQL doesn't support PRIMARY KEY or UNIQUE constraints on partitioned tables when using RANGE partitioning on expressions (like EXTRACT(YEAR FROM event_date)). Changed: - RAWDATACOR: removed PRIMARY KEY (id, event_date) and UNIQUE constraint - ELABDATADISP: removed PRIMARY KEY (id_elab_data, event_date) and UNIQUE constraint - Tables now have no constraints except NOT NULL on required columns This is a PostgreSQL limitation with partitioned tables. Constraints can be added per-partition if needed, but for simplicity we rely on application-level validation. Fixes: 'vincolo PRIMARY KEY non supportato con una definizione di chiave di partizione'
65 KiB
65 KiB