Re: BUG #14503: restore single database

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pawan(dot)sharma2(at)cognizant(dot)com
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14503: restore single database
Date: 2017-01-17 20:58:44
Message-ID: CAKFQuwaVEyxv_iHwP9x5j9bOsM5hy9d=yWcP8rAC9Eo3YDzOkA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Jan 17, 2017 at 12:03 PM, <pawan(dot)sharma2(at)cognizant(dot)com> wrote:

> The following bug has been logged on the website:
>
> Bug reference: 14503
> Logged by: Pawan Sharma
> Email address: pawan(dot)sharma2(at)cognizant(dot)com
> PostgreSQL version: 9.5.5
> Operating system: Linux
> Description:
>
> How can we restore single database from base backup files only.
>
> I don't have pg_dump backup.
>

​Not a bug. Please direct usage question to pgsql-general(at)postgresql(dot)org

That said:


https://www.postgresql.org/docs/9.6/static/continuous-archiving.html#BACKUP-PITR-RECOVERY

You have to restore the entire cluster. After you've done that you can
pg_dump the single database you care about from the newly restored cluster
and pg_restore it elsewhere.

David J.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2017-01-17 21:25:19 Re: BUG #14503: restore single database
Previous Message pawan.sharma2 2017-01-17 19:03:21 BUG #14503: restore single database