QUERY PLAN
Aggregate (cost=2.80..2.81 rows=1 width=32)
-> Seq Scan on tbl_erp_other_payment_tickets t (cost=0.00..2.73 rows=26 width=5)
Filter: (is_start AND (status = 2) AND (ticket_type = ANY ('{1,2,4}'::integer[])))