]> granicus.if.org Git - postgresql/commit
Improve the error message when creating an empty range partition.
authorRobert Haas <rhaas@postgresql.org>
Thu, 10 Aug 2017 17:44:30 +0000 (13:44 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 10 Aug 2017 17:46:56 +0000 (13:46 -0400)
commitbb5d6e80b1387f0de58e55ac8e882f68ec6d4fcf
tree5d6488d2901c72a8a5ad5984294b27691319aee1
parentc1ef4e5cdb11cd562891f4ad2f30d1e3583a973d
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
src/backend/catalog/partition.c
src/backend/utils/adt/ruleutils.c
src/include/utils/ruleutils.h
src/test/regress/expected/create_table.out