Re: show index from [table]

From: Ireneusz Pluta <ipluta(at)wp(dot)pl>
To: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: show index from [table]
Date: 2007-06-08 19:13:59
Message-ID: 4669AA77.1040503@wp.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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';

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message chester c young 2007-06-09 16:56:58 search path within trigger
Previous Message Andreas Kretschmer 2007-06-08 15:47:53 Re: show index from [table]