Full table backup to csv with header

suggest change
COPY 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents