Re: Show method of index - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Show method of index
Date
Msg-id 20090508204344.GI10794@alvh.no-ip.org
Whole thread Raw
In response to Show method of index  (Ricardo Bessa <ricardobessa@gmail.com>)
Responses Re: Show method of index  (David Fetter <david@fetter.org>)
Re: Show method of index  (decibel <decibel@decibel.org>)
List pgsql-hackers
Ricardo Bessa escribió:
> Hi,
> 
>     I think that can be useful the command \di on psql show the method of
> index (hash, btree, ...) like:
> 
>     test=# \di
>                            List of relations
>      Schema |     Name      | Type  |   Owner    | Table  | Method
>     --------+---------------+-------+------------+--------+--------
>      public | test_id_idx   | index | postgresql | table1 | btree
>      public | test_name_idx | index | postgresql | table1 | hash
>     (2 rows)

Well, you can see that with \d on the table, but IMHO this should be
present on \di too, so +1.

One gripe I had with \d and indexes the other day is that it sucks on
functional indexes -- it just says "pg_expression_1".

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Seth Robertson
Date:
Subject: Re: [PATCH] Automatic client certificate selection support for libpq v1
Next
From: Bruce Momjian
Date:
Subject: Re: Some 8.4 changes needed according to pg_migrator testing