Generally you would do that with a count function instead of relying on something else. "select * from layer where visible = 1" so I guess "SELECT COUNT(*) FROM layer WHERE visible=1" would give you the answer. - Adam
pgsql-odbc by date:
Соглашаюсь с условиями обработки персональных данных