From bb5d6e80b1387f0de58e55ac8e882f68ec6d4fcf Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 10 Aug 2017 13:44:30 -0400 Subject: 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/include/utils/ruleutils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/utils/ruleutils.h b/src/include/utils/ruleutils.h index a2206cb7cd0..e9c51938556 100644 --- a/src/include/utils/ruleutils.h +++ b/src/include/utils/ruleutils.h @@ -33,5 +33,6 @@ extern List *set_deparse_context_planstate(List *dpcontext, extern List *select_rtable_names_for_explain(List *rtable, Bitmapset *rels_used); extern char *generate_collation_name(Oid collid); +extern char *get_range_partbound_string(List *bound_datums); #endif /* RULEUTILS_H */ -- cgit v1.2.3