如何列出在Postgres中为表创建的索引 [英] How to list indexes created for table in postgres
本文介绍了如何列出在Postgres中为表创建的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您能告诉我如何检查在postgresql中为某个表创建的索引吗?
Could you tell me how to check what indexes are created for some table in postgresql ?
推荐答案
视图 pg_indexes 提供对数据库中每个索引的有用信息的访问,例如。
The view pg_indexes provides access to useful information about each index in the database, eg.
select *
from pg_indexes
where tablename not like 'pg%';
这篇关于如何列出在Postgres中为表创建的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文