Which one is faster?select count(*) from talbleorselect count(id) from tablewhere id is the primary key.
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных