We have a table users (userid, username, category, pincode) in postgresql
If we create indexes like:
- create index category_idx(category) on users;
- create index category_pincode_idx(category, pincode) on users;
and query the table users as:
select * from users where category = somevalue;
which index will be applied?