QUERY PLAN
Aggregate (cost=2290.16..2290.17 rows=1 width=8)
-> Seq Scan on tbl_action_logs a (cost=0.00..2164.53 rows=50253 width=0)