\encoding UTF8
COPY (SELECT query_to_xml('SELECT kod as id, lang_0000040e as nev, halasztott_fizetesu, hatarido, keszpenzes, bankkartya
   FROM fizetesmod
   WHERE ((lasteditedtime_forsync + interval ''12 hours'') > current_timestamp)
   ORDER BY 1
', true, false, '')) to '/tmp/flexovit_fizetesmod_changed.xml'