summaryrefslogtreecommitdiff
path: root/src/include/utils/ruleutils.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-08-10 13:44:30 -0400
committerRobert Haas <rhaas@postgresql.org>2017-08-10 13:46:56 -0400
commitbb5d6e80b1387f0de58e55ac8e882f68ec6d4fcf (patch)
tree5d6488d2901c72a8a5ad5984294b27691319aee1 /src/include/utils/ruleutils.h
parentc1ef4e5cdb11cd562891f4ad2f30d1e3583a973d (diff)
downloadpostgresql-bb5d6e80b1387f0de58e55ac8e882f68ec6d4fcf.tar.gz
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
Diffstat (limited to 'src/include/utils/ruleutils.h')
-rw-r--r--src/include/utils/ruleutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/ruleutils.h b/src/include/utils/ruleutils.h
index a2206cb7cd..e9c5193855 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 */