aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_clause.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-04-01 13:35:48 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-04-01 13:35:48 -0300
commitf402b9950120358d1870aacc10070e121d8a17de (patch)
tree901a199dae99a96485e1ae6e9a9ba94073972f14 /src/backend/parser/parse_clause.c
parenta067b50470cf7fda77dd28b03519f2483c2322bf (diff)
downloadpostgresql-f402b9950120358d1870aacc10070e121d8a17de.tar.gz
postgresql-f402b9950120358d1870aacc10070e121d8a17de.zip
Type names should not be quoted
Our actual convention, contrary to what I said in 59a2111b23f, is not to quote type names, as evidenced by unquoted use of format_type_be() result value in error messages. Remove quotes from recently tweaked messages accordingly. Per note from Tom Lane
Diffstat (limited to 'src/backend/parser/parse_clause.c')
-rw-r--r--src/backend/parser/parse_clause.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/parser/parse_clause.c b/src/backend/parser/parse_clause.c
index 8dbe9437419..c9edd881eef 100644
--- a/src/backend/parser/parse_clause.c
+++ b/src/backend/parser/parse_clause.c
@@ -758,7 +758,7 @@ transformRangeTableSample(ParseState *pstate, RangeTableSample *rts)
if (get_func_rettype(handlerOid) != TSM_HANDLEROID)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
- errmsg("function %s must return type \"%s\"",
+ errmsg("function %s must return type %s",
NameListToString(rts->method), "tsm_handler"),
parser_errposition(pstate, rts->location)));