QUERY PLAN
Aggregate (cost=5071.49..5071.50 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4952.39 rows=47639 width=0)