Importing and exporting data and csv files from a database are two fundamental tasks that developers and database administrators need to performed on a regular basis. The PGAdmin tool that is used to graphically administer postgresql databases does not have this functionality build in. Postgresql, however does make provision for this. There are two ways to copy csv files to and from postgresql databases. You can use the SQL "copy" statement or you can use the psql "\copy" command.