After reading through documentation I found that Analyze is to collect information about the given table which will be used by the planner at a later point to plan the execution of a query. In Oracle, there is an option to analyze the indexes. In the case of PostgreSQL, ANALYZE command returns warning for the index. I think index should be equally important to PostgreSQL so why it is not supported in PostgreSQL. I might have missed something, Can someone point to the right documentation with which I can get more understanding about this?
postgres=# Create table test(empno integer);
CREATE TABLE
postgres=# create index idx_test1 on test(empno );
CREATE INDEX
postgres=# \di idx_test1
List of relations
Schema | Name | Type | Owner | Table
--------+-----------+-------+---------+-------
public | idx_test1 | index | Xyz | test
(1 row)
postgres=# analyze public.idx_test1
postgres-# ;
2020-06-29 16:37:30.665 IST [118434] WARNING: skipping "idx_test1" --- cannot analyze non-tables or special system tables
WARNING: skipping "idx_test1" --- cannot analyze non-tables or special system tables
ANALYZE
postgres=#