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

Code Example 1

pg_dump -U user -d db_name -h 127.0.0.1 > dump.sql

Learn ReactJs, React Native from akashmittal.com