QUERY PLAN
Aggregate (cost=5065.82..5065.84 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4946.86 rows=47586 width=0)