QUERY PLAN
Aggregate (cost=2212.06..2212.07 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..2167.65 rows=17765 width=0)