delete from companies_ftp;
insert into companies_ftp(scoso,scomo,scomi,scomc,scomf,ssigl,sdeno,sind2,scaps,slocr,spvre,scapc,sloco,steds,stepr,stesr,scapo,sfaxs,stelx,spiva,snatu,ssito,smail,spresc,spresn,f0dei,f0ini,f0loi,f9coi,f0prv,f0cap,scosop,stid) select * from dblink('dbname=pgare','select scoso,scomo,scomi,scomc,scomf,ssigl,sdeno,sind2,scaps,slocr,spvre,scapc,sloco,steds,stepr,stesr,scapo,sfaxs,stelx,spiva,snatu,ssito,smail,spresc,spresn,f0dei,f0ini,f0loi,f9coi,f0prv,f0cap,scosop,stid from anagrafe') AS anagrafe(scoso  integer,scomo   text,scomi      text,scomc      text,scomf      text,ssigl      text,sdeno      text,sind2       text,scaps      text,slocr      text,spvre      text,scapc      text,sloco      text,steds      text,stepr      text,stesr      text,scapo      text,sfaxs      text,stelx      text,spiva       text,snatu      text,ssito      text,smail      text,spresc     text,spresn     text,f0dei      text,f0ini      text,f0loi      text,f9coi      text,f0prv      text,f0cap      text,scosop     integer,stid     integer);