List columns with indexes in PostgreSQL

后端 未结 23 1934
我在风中等你
我在风中等你 2020-11-27 09:14

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

23条回答
  •  粉色の甜心
    2020-11-27 09:34

    This commands shows the view of tables variables, indexes and constraints too

    =# \d table_name;
    

    Example:

    testannie=# \d dv.l_customer_account;
    

提交回复
热议问题