QUERY PLAN
Aggregate (cost=4015.81..4015.82 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..3920.65 rows=38065 width=0)