Improve the error message when creating an empty range partition.

Robert Haas <rhaas@postgresql.org>

Commit: bb5d6e80b1387f0de58e55ac8e882f68ec6d4fcf
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-08-10T17:46:56Z
Releases: 10.0
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.

Discussion: http://postgr.es/m/CA+Tgmoae6bpwVa-1BMaVcwvCCeOoJ5B9Q9-RHWo-1gJxfPBZ5Q@mail.gmail.com

Files

Discussion