psql - Is there a way to take database dump from postgresql console? -


i know, can take database dump using command line utility pg_dump wanted know if can take sql dump psql console.

pgoptions="-c statement_timeout=5000000" pg_dump -x -o -u dbusername dbname > export.dump

then

psql dbname -f export.dump


Comments