mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pgstattuple: Add pgstathashindex.
Since pgstattuple v1.5 hasn't been released yet, no need for a new extension version. The new function exposes statistics about hash indexes similar to what other pgstatindex functions return for other index types. Ashutosh Sharma, reviewed by Kuntal Ghosh. Substantial further revisions by me.
This commit is contained in:
@ -47,3 +47,7 @@ select pg_relpages(relname) from pg_class where relname = 'test_pkey';
|
||||
create index test_ginidx on test using gin (b);
|
||||
|
||||
select * from pgstatginindex('test_ginidx');
|
||||
|
||||
create index test_hashidx on test using hash (b);
|
||||
|
||||
select * from pgstathashindex('test_hashidx');
|
||||
|
Reference in New Issue
Block a user