delete from partite_ftp;
insert into partite_ftp(id,strutr,r0cmp,r0gir,r0gio,r0anr,r0dai,r0ma1,r0ma2,r0pu1,r0pu2,r0cov,r0rdi,rfl0,r0imp,r0ori,color,data,valid) select * from dblink('dbname=pgare','select id,strutr,r0cmp,r0gir,r0gio,r0anr,r0dai,r0ma1,r0ma2,r0pu1,r0pu2,r0cov,r0rdi,r0fl0,r0imp,r0ori,color,data,valid from calendari') AS calendari(id integer, strutr       integer,r0cmp   character(8),r0gir      character(8),r0gio       character(8),r0anr      character(3),r0dai      character(6),r0ma1      integer,r0ma2   integer,r0pu1   character(3),r0pu2      character(3),r0cov      character(3),r0rdi      character(3),r0fl0       character(3),r0imp      character(8),r0ori      character(4),color      character(10),data      date,valid      boolean);