I would like to get the columns that an index is on in PostgreSQL.
In MySQL you can use SHOW INDEXES FOR table and look at the Column_name
SHOW INDEXES FOR table
Column_name
This commands shows the view of tables variables, indexes and constraints too
=# \d table_name;
Example:
testannie=# \d dv.l_customer_account;