QUERY PLAN
Aggregate (cost=1284.22..1284.23 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..1252.98 rows=12498 width=0)