QUERY PLAN
Aggregate (cost=4030.56..4030.57 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..3935.05 rows=38205 width=0)