Message style fix
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 24 Feb 2021 06:00:49 +0000 (07:00 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 24 Feb 2021 06:00:49 +0000 (07:00 +0100)
Don't quote type name placeholders.

src/backend/partitioning/partbounds.c
src/test/regress/expected/hash_part.out

index 398a83f74cdf96f1ed031fbd53a93ed700ab3b36..e5f3482d52eca08e00b9cbc1ce4e14c60bc2958a 100644 (file)
@@ -4755,7 +4755,7 @@ satisfies_hash_partition(PG_FUNCTION_ARGS)
                                if (argtype != key->parttypid[j] && !IsBinaryCoercible(argtype, key->parttypid[j]))
                                        ereport(ERROR,
                                                        (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
-                                                        errmsg("column %d of the partition key has type \"%s\", but supplied value is of type \"%s\"",
+                                                        errmsg("column %d of the partition key has type %s, but supplied value is of type %s",
                                                                        j + 1, format_type_be(key->parttypid[j]), format_type_be(argtype))));
 
                                fmgr_info_copy(&my_extra->partsupfunc[j],
index 4c74e4b7069b8d567f42c355538fe9967899b437..b79c2b44c1308bd290c42ef6217ab7c5e0fe1c0c 100644 (file)
@@ -48,7 +48,7 @@ SELECT satisfies_hash_partition('mchash'::regclass, 3, 1, NULL::int);
 ERROR:  number of partitioning columns (2) does not match number of partition keys provided (1)
 -- wrong argument type
 SELECT satisfies_hash_partition('mchash'::regclass, 2, 1, NULL::int, NULL::int);
-ERROR:  column 2 of the partition key has type "text", but supplied value is of type "integer"
+ERROR:  column 2 of the partition key has type text, but supplied value is of type integer
 -- ok, should be false
 SELECT satisfies_hash_partition('mchash'::regclass, 4, 0, 0, ''::text);
  satisfies_hash_partition