QUERY PLAN
Aggregate (cost=2116.81..2116.82 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..2074.05 rows=17105 width=0)