just create index on both columns:
CREATE INDEX foo_i ON foo(bar1, bar2);

HTH

-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

Reply via email to