Received: from localhost (pluto.hub.org [200.46.204.4]) by postgresql.org (Postfix) with ESMTP id 9544A9FA18B for ; Tue, 7 Nov 2006 16:27:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.4]) (amavisd-new, port 10024) with ESMTP id 11406-05 for ; Tue, 7 Nov 2006 16:27:44 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web31802.mail.mud.yahoo.com (web31802.mail.mud.yahoo.com [68.142.207.65]) by postgresql.org (Postfix) with SMTP id F36789F9B32 for ; Tue, 7 Nov 2006 16:27:45 -0400 (AST) Received: (qmail 53220 invoked by uid 60001); 7 Nov 2006 20:27:44 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=lqvbk+nd9PPvqMAeYGcJX5+/kkhYRofWph2Zl0ueet4LqtjIIwzZEXemamDOdVnn79dWHbBvH7im4Jv4EG8CrjhXnrvzjDknGQeZ65r4HY12ZlFu3cHBx3lW5ECF/yvrEtW3ADXydkUF2P3xnVOLIfFeN8tGeSXkFkWft7OIWgE= ; X-YMail-OSG: evnBINUVM1kd6bv.2oo6wUR3sug0683MqAoPE6LiZin4KrNg5GCySc3p.D4SV7K6frMXvN0VzMdNIy6eowsqLF54gMPlKliRCIIaUvBzQcd4PLDMZzz.L.En8aRH_JBA8kTM9CsvNJtTfMBREfjQViKwUIKQm_d_4kjsCtmgK6YBlUH05SMjuTJ6U6l2 Received: from [12.177.97.50] by web31802.mail.mud.yahoo.com via HTTP; Tue, 07 Nov 2006 12:27:44 PST Date: Tue, 7 Nov 2006 12:27:44 -0800 (PST) From: Richard Broersma Jr Subject: Re: Question To: Mark Steben , pgsql-admin@postgresql.org In-Reply-To: <000b01c702a9$c2d55d40$b501a8c0@D1RPQZB1> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <529237.52273.qm@web31802.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.379 tagged_above=0 required=5 tests=AWL, BAYES_00, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: X-Archive-Number: 200611/54 X-Sequence-Number: 23581 > I am very new to PostgreSQL. Is it appropriate to pose questions to this > email list? > I am trying to come up with a query that will list the names of the database > indexes that > > Have been chosen as clustering indexes. I know I can get the INDEXRELID > from PG.INDEX > > But have yet to figure out how to get the index name from there. Any help > would be appreciated. > > And, if this is not an appropriate forum to ask questions please tell me. I assume this is an appropiate list for this question. I am sure that pg_general would have worked also. With-out knowing the postgresql pg_* schema very well I can be difficult to determine queries that will give your this sort of information. In my case I like to cheat. 1) I turn on statement logging. 2) I issue a commands like \d from psql interface 3) Then, I look at the pg_logs to see what sql statement was actually created from "\d" In your case I would first determine which psql function will give you the information you want and this use it to give you the query you need. I hope this helps. Regards, Richard Broersma Jr.