agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: srilinux <srilinux09@gmail.com>
To: pgsql-sql@postgresql.org
Subject: How to duplicate postgres 9.4 database
Date: Fri, 21 Jul 2017 12:28:55 -0700 (MST)
Message-ID: <1500665335643-5972442.post@n3.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (4+ messages)  latest in thread

Message-ID: <1500665335643-5972442.post@n3.nabble.com>
Permalink:  ../1500665335643-5972442.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1500665335643-5972442.post@n3.nabble.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: srilinux09@gmail.com
  Subject: Re: How to duplicate postgres 9.4 database
  In-Reply-To: <1500665335643-5972442.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox