QUERY PLAN
Aggregate (cost=5232.39..5232.40 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..5109.51 rows=49151 width=0)