If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > List of inex, tables and columns

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-09-11, 06:37
krontrex krontrex is offline
Registered User
 
Join Date: Sep 2010
Posts: 37
List of inex, tables and columns

Daer all,
Is there any sql command that gives indext list together with addiitional information indexed tables and columns?
I found seceral on internet but none of them works!
Thanks
Reply With Quote
  #2 (permalink)  
Old 09-09-11, 11:15
marc_ marc_ is offline
Registered User
 
Join Date: Aug 2011
Location: Glasgow, UK
Posts: 36
You can use the pg_indexes view from the system catalog:

SELECT schemaname, tablename, indexname, "tablespace", indexdef FROM pg_indexes;
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On