Postgres useful commands
View and reload HBA File
Section titled “View and reload HBA File”SHOW hba_file;SHOW data_directory;SELECT pg_reload_conf();
pg_dump and pg_restore examples
Section titled “pg_dump and pg_restore examples”pg_dump -Z 6 -F c db_name > /tmp/db_dump.dumppg_restore -F c ./db_dump.dump -d db_name -v