db=# CREATE TABLE copy_tab (a int primary key, b text);
CREATE TABLE
db=# select current_database(), relname as table_name, indexrelname as index_name, pg_get_indexdef(indexrelid) as index_command from pg_stat_user_indexes where idx_scan = 0;
current_database | table_name | index_name | index_command
------------------+------------+---------------+-------------------------------------------------------------------------
db | copy_tab | copy_tab_pkey | CREATE UNIQUE INDEX copy_tab_pkey ON public.copy_tab USING lsm (a HASH)
(1 row)
For copy_tab_pkey we should provide different recommendation for unused primary key from other unused index.
Jira Link: DB-2710
Description
For
copy_tab_pkey
we should provide different recommendation for unused primary key from other unused index.