QUERY PLAN
Aggregate (cost=4113.36..4113.37 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4015.89 rows=38989 width=0)