QUERY PLAN
Index Scan using tbl_purchase_contract_invoices_pkey on tbl_purchase_contract_invoices (cost=0.28..8.30 rows=1 width=147)
Index Cond: (id IS NULL)