Skip to content

Commit c8478f4

Browse files
committed
pgstatindex: HASH -> hash
Fix the lone error message in the whole source tree to use capitalized HASH when referring to hash indexes, making it look like all the other messages. Someday it would be good to standardize 'B-Tree', 'B-tree', 'btree', and random other spellings, too, but that's a larger patch ... Author: Álvaro Herrera
1 parent 550091f commit c8478f4

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 a HASH index
144+
ERROR: relation "test_pkey" is not a hash 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 a HASH index
148+
ERROR: relation "test_ginidx" is not a hash 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 a HASH index",
604+
errmsg("relation \"%s\" is not a hash index",
605605
RelationGetRelationName(rel))));
606606

607607

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy