How to duplicate postgres 9.4 database

From: srilinux <srilinux09(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: How to duplicate postgres 9.4 database
Date: 2017-07-21 19:28:55
Message-ID: 1500665335643-5972442.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi All

I want to duplicate the existing database , after reading documentation I
used below command which just created database, but did not create data

CREATE DATABASE standby TEMPLATE template0;

my database is 35gb so dump and psql will take longer hours

is there an fastest way to copy database on same server , so that I can just
modify pointing to the database and connect to the stanby one to do any
testing ?

--
View this message in context: http://www.postgresql-archive.org/How-to-duplicate-postgres-9-4-database-tp5972442.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Igor Neyman 2017-07-21 20:07:33 Re: How to duplicate postgres 9.4 database
Previous Message Tom Lane 2017-07-21 17:23:30 Re: commit not completing - how to investigate?