QUERY PLAN
Aggregate (cost=529.59..529.60 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..517.27 rows=4927 width=0)