pgstatindex: HASH -> hash
authorAlvaro Herrera <[email protected]>
Wed, 9 May 2018 16:44:50 +0000 (13:44 -0300)
committerAlvaro Herrera <[email protected]>
Wed, 9 May 2018 17:21:59 +0000 (14:21 -0300)
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

contrib/pgstattuple/expected/pgstattuple.out
contrib/pgstattuple/pgstatindex.c

index a7087f6d4573802a0923131f5b96aabb3a037327..7fe81e9e342418ffd62a3ea4bc6c55fb644cc1e9 100644 (file)
@@ -141,11 +141,11 @@ select * from pgstathashindex('test_hashidx');
 select pgstatginindex('test_pkey');
 ERROR:  relation "test_pkey" is not a GIN index
 select pgstathashindex('test_pkey');
-ERROR:  relation "test_pkey" is not a HASH index
+ERROR:  relation "test_pkey" is not a hash index
 select pgstatindex('test_ginidx');
 ERROR:  relation "test_ginidx" is not a btree index
 select pgstathashindex('test_ginidx');
-ERROR:  relation "test_ginidx" is not a HASH index
+ERROR:  relation "test_ginidx" is not a hash index
 select pgstatindex('test_hashidx');
 ERROR:  relation "test_hashidx" is not a btree index
 select pgstatginindex('test_hashidx');
index 75317b96a2f0c7df185419608e21063c0b9ce58e..94198f913e545b7b4b3eabaf47638e97c545f65d 100644 (file)
@@ -601,7 +601,7 @@ pgstathashindex(PG_FUNCTION_ARGS)
    if (!IS_HASH(rel))
        ereport(ERROR,
                (errcode(ERRCODE_WRONG_OBJECT_TYPE),
-                errmsg("relation \"%s\" is not a HASH index",
+                errmsg("relation \"%s\" is not a hash index",
                        RelationGetRelationName(rel))));