QUERY PLAN
Aggregate (cost=4980.85..4980.86 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4863.88 rows=46788 width=0)