QUERY PLAN
Sort (cost=11.56..11.57 rows=3 width=16)
Sort Key: id
-> Seq Scan on tbl_ledger_account_captions (cost=0.00..11.54 rows=3 width=16)
Filter: ((ledger_id = 1) AND ((id = ANY ('{124,141,152}'::integer[])) OR (parent_id = ANY ('{124,141,152}'::integer[]))))