pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ireneusz Pluta <ipluta@wp.pl>
To: Andreas Kretschmer <akretschmer@spamfence.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: show index from [table]
Date: Fri, 08 Jun 2007 21:13:59 +0200
Message-ID: <4669AA77.1040503@wp.pl> (raw)
In-Reply-To: <20070608154753.GA23791@KanotixBox>
References: <112402456@web.de>
	<20070608154753.GA23791@KanotixBox>

Andreas Kretschmer napisaƂ(a):
>
> Yes, right.
>
>   
>> but actually i would need the information from within a (postgres)
>> sql-query. is there a possibility to get information about the indices
>> which have been created on a table?
>>     
>
> Yes, of corse. Please start psql with the -E - option. Now you can see
> the underlying sql-statement for commands like \di.
>
>
>   
... or even better:
select * from pg_indexes where tablename = 'your_table';




view thread (4+ messages)  latest in thread

Message-ID: <4669AA77.1040503@wp.pl>
Permalink:  ../4669AA77.1040503@wp.pl/
Also on:    postgresql.org/message-id/4669AA77.1040503@wp.pl

 · 

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-sql@postgresql.org
  Cc: ipluta@wp.pl, akretschmer@spamfence.net
  Subject: Re: show index from [table]
  In-Reply-To: <4669AA77.1040503@wp.pl>

* 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