Check out example codes for "run postgresql dump to csv". It will help you in understanding the concepts better.

Code Example 1

\copy (SELECT * FROM persons) to 'C:\tmp\persons_client.csv' with csv

Learn ReactJs, React Native from akashmittal.com