Re: Question

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Mark Steben <msteben(at)autorevenue(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Question
Date: 2006-11-07 20:27:44
Message-ID: 529237.52273.qm@web31802.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> 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.

In response to

  • Question at 2006-11-07 20:17:32 from Mark Steben

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jeff Frost 2006-11-07 20:29:09 Re: Question
Previous Message Mark Steben 2006-11-07 20:17:32 Question