 +	       } else {		/* file_index != 0 file have be backuped */
 +		  db_accurate_delete_file_record(jcr, jcr->db, fdbr.FileId, backupid);
 +	       }
++	    } else {
++	       Dmsg2(1, "already saved fname=%s fileid=%i\n", jcr->fname, fdbr.FileId);
 +	    }
 +	 } else if (file_index == 0) {
 +	       Dmsg1(1, "mark_for_backup fname=%s\n", jcr->fname);

 /*
  * Update the Job record at start of Job
  *
Index: src/cats/make_postgresql_tables.in
===================================================================
--- src/cats/make_postgresql_tables.in	(rvision 6372)
+++ src/cats/make_postgresql_tables.in	(copie de travail)
@@ -43,6 +43,59 @@
 CREATE INDEX file_jobid_idx on file (jobid);
 CREATE INDEX file_fp_idx on file (filenameid, pathid);

  * Do a backup of the specified FileSet
  *
  *  Returns:  false on failure
@@ -231,9 +639,18 @@
       goto bail_out;
    }
 
