utf9k

Something to think about: What does the "work" in network refer to? There's no such thing as a netrelax after all

How can I import a dumped database into Postgres?

In which I remind myself how to import a Postgres database

Published
Tags

Using pg_restore, it’s almost the same process as pg_dump but in reverse

pg_restore --dbname={{DBNAME}} --host={{HOST}} --port={{PORT}} --username={{USERNAME}} --password --jobs 2 {{NAME}}.dump

You can use -j to parallelize restoration ie; pg_dump -j 41.