show index from [table]
От | Stefan Zweig |
---|---|
Тема | show index from [table] |
Дата | |
Msg-id | 112402456@web.de обсуждение исходный текст |
Ответы |
Re: show index from [table]
Re: show index from [table] |
Список | pgsql-sql |
hi list, currently i am switching from mysql to pgsql, so i am a bit new to postgres' syntax. at the moment i am looking in postgres for something which is similar to SHOW INDEX FROM [table] in mysql. unfortunatelyi could not find anything satisfying relating to this issue. i have found out, that there is the -di option with psql. but actually i would need the information from within a (postgres) sql-query. is there a possibility to get information aboutthe indices which have been created on a table? if there is not, it might be sufficient for me to get the create index strings, such like you get, when viewing a table inpgAdmin: -- Index: g_g114_b_idx -- DROP INDEX g_g114_b_idx; CREATE INDEX g_g114_b_idx ON g_g114 USING btree (b); and parse them manually. is that possible in any way? maybe there is something similar to SHOW CREATE TABLE (as in MySQL) in postgresql. thanks in advance, stefan _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
В списке pgsql-sql по дате отправления: