QUERY PLAN
Aggregate (cost=4972.93..4972.94 rows=1 width=8)
-> Seq Scan on tbl_api_log a (cost=0.00..4856.14 rows=46714 width=0)