From 9742f957114fcc901f9970a0937d87fade9d2f72 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sun, 8 May 2016 12:12:01 -0500 Subject: [PATCH] Add a note at the bottom --- postgres/dump-and-restore-a-database.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgres/dump-and-restore-a-database.md b/postgres/dump-and-restore-a-database.md index ff2f48d..3f407ba 100644 --- a/postgres/dump-and-restore-a-database.md +++ b/postgres/dump-and-restore-a-database.md @@ -24,6 +24,10 @@ $ createdb my_new_database $ 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 [`pg_dump` docs](http://www.postgresql.org/docs/current/static/app-pgdump.html) and [`pg_restore`