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

From Khee Chin
Subject Re: Show method of index
Date
Msg-id 797115b80905081513o49e1e1cfk8142fdf9be567af3@mail.gmail.com
Whole thread Raw
In response to Show method of index  (Ricardo Bessa <ricardobessa@gmail.com>)
Responses Re: Show method of index  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
> 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)

Attached is a simple patch which adds the above mentioned functionality to psql.

Regards,
Khee Chin.

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Some 8.4 changes needed according to pg_migrator testing
Next
From: Peter Eisentraut
Date:
Subject: Re: strict version of version_stamp.pl