Show method of index - Mailing list pgsql-hackers

From Ricardo Bessa
Subject Show method of index
Date
Msg-id ad0632c70905081320h2d1cf9cfm76d5026c443dbd3c@mail.gmail.com
Whole thread Raw
Responses Re: Show method of index  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Hi,<br /><br />    I think that can be useful the command \di on psql show the method of index (hash, btree, ...)
like:<br/><br />    test=# \di<br />                           List of relations<br />     Schema |     Name      |
Type |   Owner    | Table  | Method <br />     --------+---------------+-------+------------+--------+--------<br />   
 public| test_id_idx   | index | postgresql | table1 | btree<br />     public | test_name_idx | index | postgresql |
table1| hash<br />    (2 rows)<br />     <br />    Or maybe only on \di+.<br />    <br />    test=# \di+ test_id_idx<br
/>                                      List of relations<br />     Schema |    Name     | Type  |   Owner    | Table 
|Method |    Size    | Description <br />    
--------+-------------+-------+------------+--------+--------+------------+-------------<br/>     public | test_id_idx
|index | postgresql | table1 | btree  | 8192 bytes | <br />    (1 row)<br /><br />    If they wanna, i can submit the
patchof this small change of psql.<br clear="all" /><br />-- <br />Ricardo Bessa<br /> 

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Patch to fix search_path defencies with pg_bench
Next
From: Seth Robertson
Date:
Subject: Re: [PATCH] Automatic client certificate selection support for libpq v1