pgsql: Improve the error message when creating an empty range partition

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve the error message when creating an empty range partition
Date: 2017-08-10 17:54:18
Message-ID: E1dfrf0-0006tA-6G@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bb5d6e80b1387f0de58e55ac8e882f68ec6d4fcf

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-08-11 02:17:06 pgsql: Fix order of ICU_CFLAGS
Previous Message Robert Haas 2017-08-10 17:31:51 pgsql: Make some more improvements to parallel query documentation.