Re: How to restore

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Sachin Srivastava <ssr(dot)teleatlas(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to restore
Date: 2015-08-10 05:51:06
Message-ID: CAB7nPqRkan6o9PhREptLTk24tFVWXyJ6KvoCHpvdz5BMc0GAHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Aug 10, 2015 at 2:41 PM, Sachin Srivastava
<ssr(dot)teleatlas(at)gmail(dot)com> wrote:
> Dear Team,
>
> If I have taken any backup successfully through pg_dump? How can I restore
> this pg_dump(Sql file) without use of pg_restore.
> There is any command line option or through psql, kindly inform to me.

The way to restore a backup depends on the format a dump has been taken:
http://www.postgresql.org/docs/devel/static/app-pgdump.html
Except the plain format that need psql, all the others (custom,
directory and tar) need pg_restore.
--
Michael

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2015-08-10 05:58:43 Re: How to restore
Previous Message Guillaume Lelarge 2015-08-10 05:48:54 Re: How to restore