Full table backup to csv with header
suggest changeCOPY products TO 'D:\csv_backup\products_db.csv' DELIMITER ',' CSV HEADER;
COPY categories TO 'D:\csv_backup\categories_db.csv' DELIMITER ',' CSV HEADER;
This is server-side COPY: the path is on the database server, and the role needs permission to write server files. Use \copy in psql to write a file on the client.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents