CREATE INDEX nav_invoices_deleted_trans_status_codes
  ON nav_invoices
  USING btree
  (deleted_trans,invoice_status,abort_error_codes,warn_error_codes);