aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-02-24 07:00:49 +0100
committerPeter Eisentraut <peter@eisentraut.org>2021-02-24 07:00:49 +0100
commit8ec8fe0f31712c62b761da9ef6d32214e08340d1 (patch)
treed44ca28cd865d5c5c57b551675d86af428c2588a /src
parentc82d59d64e127a5e743f9cf16537f4c7c120ce7b (diff)
downloadpostgresql-8ec8fe0f31712c62b761da9ef6d32214e08340d1.tar.gz
postgresql-8ec8fe0f31712c62b761da9ef6d32214e08340d1.zip
Message style fix
Don't quote type name placeholders.
Diffstat (limited to 'src')
-rw-r--r--src/backend/partitioning/partbounds.c2
-rw-r--r--src/test/regress/expected/hash_part.out2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c
index 398a83f74cd..e5f3482d52e 100644
--- a/src/backend/partitioning/partbounds.c
+++ b/src/backend/partitioning/partbounds.c
@@ -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],
diff --git a/src/test/regress/expected/hash_part.out b/src/test/regress/expected/hash_part.out
index 4c74e4b7069..b79c2b44c13 100644
--- a/src/test/regress/expected/hash_part.out
+++ b/src/test/regress/expected/hash_part.out
@@ -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