Re: list of index

From: "FarjadFarid\(ChkNet\)" <farjad(dot)farid(at)checknetworks(dot)com>
To: "'Szymon Guz'" <mabewlun(at)gmail(dot)com>
Cc: "'PostgreSQL'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: list of index
Date: 2014-08-15 14:53:51
Message-ID: 002901cfb898$ba3c2f80$2eb48e80$@checknetworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi ,

I have done that. The important point is obtaining the “sort order” of each column in the index. Specially multi column index.

Are there no views?

How does the engine handle sort order of a multi column index?!!

From what I have seen it is rather complicated in postgres.

Any suggestion would be very welcome. Many Thanks.

From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Szymon Guz
Sent: 15 August 2014 15:32
To: farjad(dot)farid(at)checknetworks(dot)com
Cc: PostgreSQL
Subject: Re: [GENERAL] list of index

On 15 August 2014 16:23, FarjadFarid(ChkNet) <farjad(dot)farid(at)checknetworks(dot)com> wrote:

Hi ,

On a Postgresql database i like to obtain (using an sql statement) the list of all user defined indexes and their details specially the column "order by" sort order. e.g. ASC or DESC. Any help would be much appreciated.

Hi,
take a look at: select * from pg_indexes;

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message FarjadFarid(ChkNet) 2014-08-15 15:00:36 Re: list of index
Previous Message Szymon Guz 2014-08-15 14:31:32 Re: list of index