Check out example codes for "how to take database dump in postgresql". It will help you in understanding the concepts better.

Code Example 1

psql databasename < data_base_dump

Code Example 2

pg_dump dbname > outfile

Learn ReactJs, React Native from akashmittal.com