3 ms·
In PostgreSQL count(1) is slower since PostgreSQL does not optimize count(constant) to count(*). EDIT: PostgreSQL might be able to optimize that with LLVM but
by jeltz 6y ago
In PostgreSQL count(1) is slower since PostgreSQL does not optimize count(constant) to count(*).
EDIT: PostgreSQL might be able to optimize that with LLVM but for short running queries it won't.