Export data into CSV format

Command “COPY” will do all the dirty job.   Attention – examples are ment for Linux and contain variables which you have to set or substitute with values.   If data are small you will probably use directly unpacked form: psql -U postgres -d...