QUERY PLAN
Aggregate (cost=330.46..330.47 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..323.17 rows=2917 width=0)