well you can put some like or regexpression operator on the last column - indexdef and see if the column you are looking is there or if you know what is the name of the index you can look in indexname
other way is
select c1.relname, c2.relname, i.indkey from pg_class as c1, pg_class as c2, pg_index as i where i.indexrelid = c1.oid and i.indrelid = c2.oid and c2.relname = 'r_test';
now again r_test is the table name (c1 relation is not needed in the query, i've put it for clearity about which index it is) in i.indkey you will have int2vector containing all the columns in the index, but as numbers
create table r_test (id int4, int_f int4);
id will be 1
int_f - 2
you can use pg_attribute to get the names of the fields
well I am a little curious about what exactly you are trying to do, because ....
but if it still is not exactly the thing you need, here
is info about all the system catalogues and the thing should be here ;-) also of course ask here