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: (view raw, whole thread or download thread mbox)
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                        |
  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-2017 The PostgreSQL Global Development Group