Запустите PostgreSQL Dump в CSV
\copy (SELECT * FROM persons) to 'C:\tmp\persons_client.csv' with csv
Obedient Osprey
\copy (SELECT * FROM persons) to 'C:\tmp\persons_client.csv' with csv
COPY table_name FROM 'C:\Users\Public\Documents\ert.txt' DELIMITER ',' CSV
-- make sure to put the file in public folder in windows
-- Or temp folder in linux/mac
-- because it might ask for some permissions...
copy table from '/home/usama/Documents/columns_rearrange.csv' csv header ;
COPY mytable FROM '/path/to/csv/file' WITH CSV HEADER; -- must be superuser