Created
February 9, 2012 11:56
-
-
Save offmessage/1779527 to your computer and use it in GitHub Desktop.
Copy a postgres database on the same machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# old database must be idle (no held open connections or write transactions) | |
sudo -u postgres createdb newdatabase -T olddatabase |
Nope. You're right. Any advice?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
doesn't copy database access privileges...