Skip to content

Instantly share code, notes, and snippets.

@iambibhas
Created July 11, 2013 13:03
Show Gist options
  • Save iambibhas/5975259 to your computer and use it in GitHub Desktop.
Save iambibhas/5975259 to your computer and use it in GitHub Desktop.
PostgreSQL Copy a Database
# Execute this from a user who has permission to create database
CREATE DATABASE newdb WITH TEMPLATE originaldb OWNER dbuser;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment