QUERY PLAN
Aggregate (cost=4340.39..4340.40 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4237.51 rows=41151 width=0)