Check out example codes for "postgresql restore from dump". It will help you in understanding the concepts better.

Code Example 1

psql -U postgres -h localhost -p 5432 -f data_dump.sql

Learn ReactJs, React Native from akashmittal.com