QUERY PLAN
Aggregate (cost=4767.29..4767.30 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4670.23 rows=38823 width=0)