Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to show index type in postgresql

SELECT tab.relname, cls.relname, am.amname
FROM pg_index idx 
JOIN pg_class cls ON cls.oid=idx.indexrelid
JOIN pg_class tab ON tab.oid=idx.indrelid
JOIN pg_am am ON am.oid=cls.relam;
Source by dba.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #show #index #type #postgresql
ADD COMMENT
Topic
Name
2+3 =