QUERY PLAN
Sort (cost=845.22..845.22 rows=1 width=8)
Sort Key: id
-> Seq Scan on tbl_attachement_relationships (cost=0.00..845.21 rows=1 width=8)
Filter: ((object_type = ANY ('{20019,20020}'::integer[])) AND (object_id = 2362))