QUERY PLAN
Aggregate (cost=4347.19..4347.20 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4244.15 rows=41215 width=0)