> sql2csv "SELECT DISTINCT opid, year FROM public.field_observations > ORDER BY year LIMIT 10" > /tmp/rien.csv>Ok. Will use stdout then.
Thanks.--psql -c "copy t1 to STDOUT with CSV" >! test.csv