Re: pg_Restore

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "bhanu udaya *EXTERN*" <udayabhanu1984(at)hotmail(dot)com>, Chris Travers <chris(dot)travers(at)gmail(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, François Beausoleil <francois(at)teksol(dot)info>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_Restore
Date: 2013-01-21 15:19:45
Message-ID: A737B7A37273E048B164557ADEF4A58B0579C1CE@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

bhanu udaya wrote:
> Can you please let me know the procedure for Template. Will it restore the data also
> .

It will create a complete copy of an existing database

The procedure is
CREATE DATABASE newdb TEMPLATE olddb;

Nobody may be connected to olddb for this to work.

Yours,
Laurenz Albe

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Alban Hertroys 2013-01-21 15:22:25 Re: pg_Restore
Previous Message bhanu udaya 2013-01-21 15:10:05 Re: pg_Restore

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2013-01-21 15:22:25 Re: pg_Restore
Previous Message bhanu udaya 2013-01-21 15:10:05 Re: pg_Restore