QUERY PLAN
Aggregate (cost=4723.88..4723.89 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4627.70 rows=38470 width=0)