QUERY PLAN
Aggregate (cost=1287.64..1287.65 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..1256.31 rows=12531 width=0)