Improve new hash partition bound check error messages
Peter Eisentraut <peter@eisentraut.org>
Improve new hash partition bound check error messages For the error message "every hash partition modulus must be a factor of the next larger modulus", add a detail message that shows the particular numbers and existing partition involved. Also comment the code more. Reviewed-by: Amit Langote <amitlangote09@gmail.com> Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://www.postgresql.org/message-id/flat/bb9d60b4-aadb-607a-1a9d-fdc3434dddcd%40enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/partitioning/partbounds.c | modified | +44 −18 |
| src/test/regress/expected/alter_table.out | modified | +1 −0 |
| src/test/regress/expected/create_table.out | modified | +2 −0 |
Discussion
- Improve new hash partition bound check error messages 6 messages · 2021-02-02 → 2021-02-22