Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 87BD19FB723 for ; Fri, 8 Jun 2007 12:25:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41277-07 for ; Fri, 8 Jun 2007 12:25:44 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by postgresql.org (Postfix) with ESMTP id 093F29FB661 for ; Fri, 8 Jun 2007 12:25:41 -0300 (ADT) Received: from web.de by fmmailgate04.web.de (Postfix) with SMTP id C9767230AFD9 for ; Fri, 8 Jun 2007 17:25:40 +0200 (CEST) Received: from [213.187.89.34] by freemailng2703.web.de with HTTP; Fri, 08 Jun 2007 17:25:40 +0200 Date: Fri, 08 Jun 2007 17:25:40 +0200 Message-Id: <112402456@web.de> MIME-Version: 1.0 From: Stefan Zweig To: pgsql-sql@postgresql.org Subject: show index from [table] Precedence: fm-user Organization: http://freemail.web.de/ X-Provags-Id: V01U2FsdGVkX18KxOro348p7uWb42yHRzQkjE4nFRgHDNdzn2CelNUFA1/z4 OOY9SRlMvCCfLFVd2pBRb0yPN8sGF7u4ekqkgaX8rNwbLrIQR0yYc5radT1+ w== Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.055 tagged_above=0 required=5 tests=AWL=0.053, BAYES_50=0.001, UNPARSEABLE_RELAY=0.001 X-Spam-Level: X-Archive-Number: 200706/75 X-Sequence-Number: 28565 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. unfortunately i 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 about the 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 in pgAdmin: -- 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