> select * from attributes_table where id in (select id from > attributes where (name='obsid') and (value='oid00066')); Can you convert it into a join? 'where in' clauses tend to slow pgsql down. -- Mike Nolan
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных