Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8478f4

Browse files
committed
pgstatindex: HASH -> hash
Fix the lone error message in the whole source tree to use capitalizedHASH when referring to hash indexes, making it look like all the othermessages.Someday it would be good to standardize 'B-Tree', 'B-tree', 'btree', andrandom other spellings, too, but that's a larger patch ...Author: Álvaro Herrera
1 parent550091f commitc8478f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎contrib/pgstattuple/expected/pgstattuple.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ select * from pgstathashindex('test_hashidx');
141141
select pgstatginindex('test_pkey');
142142
ERROR: relation "test_pkey" is not a GIN index
143143
select pgstathashindex('test_pkey');
144-
ERROR: relation "test_pkey" is not aHASH index
144+
ERROR: relation "test_pkey" is not ahash index
145145
select pgstatindex('test_ginidx');
146146
ERROR: relation "test_ginidx" is not a btree index
147147
select pgstathashindex('test_ginidx');
148-
ERROR: relation "test_ginidx" is not aHASH index
148+
ERROR: relation "test_ginidx" is not ahash index
149149
select pgstatindex('test_hashidx');
150150
ERROR: relation "test_hashidx" is not a btree index
151151
select pgstatginindex('test_hashidx');

‎contrib/pgstattuple/pgstatindex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ pgstathashindex(PG_FUNCTION_ARGS)
601601
if (!IS_HASH(rel))
602602
ereport(ERROR,
603603
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
604-
errmsg("relation \"%s\" is not aHASH index",
604+
errmsg("relation \"%s\" is not ahash index",
605605
RelationGetRelationName(rel))));
606606

607607

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp