snipt

Ctrl+h for KB shortcuts

Bash

Import a .pgdump into an existing PSQL DB.

$ psql dbname < file.pgdump
https://snipt.net/embed/c87929b6bd8df6ce764c25956f976436/
/raw/c87929b6bd8df6ce764c25956f976436/
c87929b6bd8df6ce764c25956f976436
bash
Bash
1
2019-07-13T06:41:50
True
False
False
Jul 19, 2012 at 04:50 PM
/api/public/snipt/44160/
import-a-pgdump-into-an-existing-psql-db
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$ psql dbname &lt; file.pgdump </span></pre></div> </td></tr></table>
pgdump, postgresql, psql