Skip site navigation (1) Skip section navigation (2)

Re: index info v7.4

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Martin Hampl <Martin(dot)Hampl(at)gmx(dot)de>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: index info v7.4
Date: 2003-11-20 03:51:49
Message-ID: 200311200351.hAK3pn413077@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
Martin Hampl wrote:
> Hi,
> 
> Is there a way to get information about the indexes I have defined on a 
> database?

Uh, SELECT * FROM pg_index, and join that to pg_class.  You can do \di
too from psql.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-novice by date

Next:From: wimDate: 2003-11-20 06:55:23
Subject: Re: Server for Home Use
Previous:From: John TankersleyDate: 2003-11-20 03:25:13
Subject: Server for Home Use

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group