Improve the error message when creating an empty range partition.

The previous message didn't mention the name of the table or the
bounds.  Put the table name in the primary error message and the
bounds in the detail message.

Amit Langote, changed slightly by me.  Suggestions on the exac
phrasing from Tom Lane, David G. Johnston, and Dean Rasheed.




Modified Files
src/backend/catalog/partition.c            | 10 +++-
src/backend/utils/adt/ruleutils.c          | 84 +++++++++++++++---------------
src/include/utils/ruleutils.h              |  1 +
src/test/regress/expected/create_table.out |  6 ++-
4 files changed, 56 insertions(+), 45 deletions(-)

Sent via pgsql-committers mailing list (
To make changes to your subscription:

Reply via email to