mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add a note at the bottom
This commit is contained in:
@@ -24,6 +24,10 @@ $ createdb my_new_database
|
|||||||
$ pg_restore -d my_new_database my_database.dump
|
$ pg_restore -d my_new_database my_database.dump
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note: the dumped tables will depend on some user role. You will need to
|
||||||
|
ensure that this role exists on the database cluster where the restore is
|
||||||
|
happening. You can use the `createuser` command if necessary.
|
||||||
|
|
||||||
See the
|
See the
|
||||||
[`pg_dump` docs](http://www.postgresql.org/docs/current/static/app-pgdump.html)
|
[`pg_dump` docs](http://www.postgresql.org/docs/current/static/app-pgdump.html)
|
||||||
and [`pg_restore`
|
and [`pg_restore`
|
||||||
|
|||||||
Reference in New Issue
Block a user