How to query the metadata of indexes in PostgreSQL
问题 I need to be able to query a PostgreSQL database to obtain information about the indexes present and their details. On SQL Server, I can do the following to get a list of all tables/indexes/columns for all indexes: select TABLE_NAME, INDEX_NAME, NON_UNIQUE, COLUMN_NAME from INFORMATION_SCHEMA.STATISTICS where TABLE_SCHEMA = 'my_schema' order by TABLE_NAME, INDEX_NAME, SEQ_IN_INDEX It seems that the STATISTICS table of INFORMATION_SCHEMA is a SQL Server extension. How can I do the equivalent