model-writtenrun 8095 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nagaraj Raj reported that migrating to declarative partitioning rejected a primary key that omitted the date partitioning column, and asked whether that column had to belong to the primary key #1.
- David Rowley explained that partition-local unique indexes require the partition key to be a subset of the primary key, and identified the documentation’s failure to explicitly mention primary keys #3.
- Tom Lane proposed clearer error text and favored “must include all partitioning columns”; after David requested an explicit constraint type, Tom argued that the existing DETAIL already supplied it and that a general primary message would translate more reliably #4 #5 #6.
- Alvaro Herrera proposed parenthetically identifying primary keys as unique constraints, and David agreed to handle documentation separately from the diagnostic change #7 #9.
- David submitted the documentation patch, and Tom reviewed it with the replacement wording “Unique constraints (and hence primary keys)” #10 #11.
- Alvaro independently submitted the diagnostic patch using the simpler wording and updating the regression expectations, while retaining the constraint-specific DETAIL #12.
- David accepted Tom’s documentation wording, and the documentation patch landed with that light edit as 2b888647d8 #13.
- Godfrin, Philippe E questioned the feature-not-supported SQLSTATE; Tom explained that the request was semantically valid but unsupported by the partitioning architecture, so the classification remained unchanged #17 #18.
- Alvaro committed the diagnostic patch unchanged as 9fc2122712 and announced the push in the final message, leaving both patches landed with backports through PostgreSQL 11 #19.