pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: Mark Steben <msteben@autorevenue.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Question
Date: Tue, 07 Nov 2006 14:45:19 -0600
Message-ID: <1162932319.13696.32.camel@state.g2switchworks.com> (raw)
In-Reply-To: <529237.52273.qm@web31802.mail.mud.yahoo.com>
References: <529237.52273.qm@web31802.mail.mud.yahoo.com>

On Tue, 2006-11-07 at 14:27, Richard Broersma Jr wrote:
> > 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"

Easier way to cheat:

psql -E dbname

then all the \d commands and what not will spill their secrets right on
the screen.  :)



view thread (32+ messages)  latest in thread

Message-ID: <1162932319.13696.32.camel@state.g2switchworks.com>
Permalink:  ../1162932319.13696.32.camel@state.g2switchworks.com/
Also on:    postgresql.org/message-id/1162932319.13696.32.camel@state.g2switchworks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: smarlowe@g2switchworks.com, rabroersma@yahoo.com, msteben@autorevenue.com
  Subject: Re: Question
  In-Reply-To: <1162932319.13696.32.camel@state.g2switchworks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox