COPY (SELECT * FROM sample_table WHERE id > 10000) TO 'E:/work/sample_table.dump';