From: David Steele <david@pgmasters.net>
To: chiru r <chirupg@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Forums postgresql <pgsql-general@postgresql.org>
Subject: Re: PgBackRest question?
Date: Thu, 28 Dec 2017 16:26:38 -0500
Message-ID: <84f84e41-5bcd-022e-8832-376363ac3fd8@pgmasters.net> (raw)
In-Reply-To: <CA+RSxMjYu_06YY7Ktnqf7ZxoXFn-oJ2fhbL2ssKQxwTy-3j7XA@mail.gmail.com>
References: <CA+RSxMjBtqwCVWQm3dRzZkkWS8hFKPY2b82KXwbZDtPvGF1oQg@mail.gmail.com>
<20171213224505.GT4628@tamriel.snowman.net>
<CA+RSxMgR-avEre8eCAkc795iNUiq_S3cmrvS1Lz_Lw6vZxdhPg@mail.gmail.com>
<e252cb30-9707-3801-f688-75dd2cde4819@pgmasters.net>
<CA+RSxMgQMmF2af+cqaAXZRbn9-cWGYyMpiLWQOP8Ef9Vceditw@mail.gmail.com>
<f7da14c5-911f-9216-7c2e-db22101e77cb@pgmasters.net>
<CA+RSxMjYu_06YY7Ktnqf7ZxoXFn-oJ2fhbL2ssKQxwTy-3j7XA@mail.gmail.com>
On 12/28/17 3:38 PM, chiru r wrote:
> Thank you for the details David and Stephen..
>
> I am unable to recover the database which associated with user table space .
>
> Please see the below test case and suggest me,if any one has the issues
> while recovering single database.
>
> *Test case: *
>
> 1) created tablespace tblsp1 .
> 2) created database db1 with tablespace tblsp1;
> 3) created another database db2 ( with out tablespace , it means it is
> going to be created under pg_default table space)
> 4) Taken full backup.
> 5) create table t1 on both db1 and db2 databases .
> 6) Taken Incremental backup
> 7) a) We have tried to restore the db1 on different location by
> mapping table-space and without table-space .
This all looks reasonable.
> However we got the below Error
> pgbackrest --stanza=online_backups --db-include=db1
> --tablespace-map-all=/u02/pgdata02/report2 restore
> ERROR [080]: : database to include 'db1' does not exist
It appears that db1 is not listed as a valid database in the backup
manifest.
> b) We have tried to restore the db1 on different location and we got
> the below Error
>
> pgbackrest --stanza=online_backups --delta --db-include=db1 restore
> ERROR [080]: : database to include 'db1' does not exist
>
> Please help me can we restore single database ,if it is assigned with
> tables space? .
> And also let me know if anything missing in my test case ?
>
> *Note *: if I restore the db2, whicich is associated with pg_default
> tablespace it is working.
> pgbackrest --stanza=online_backups --delta --db-include=db2 restore
Can you run this query on the cluster where the backups are running and
attach the result:
select datname, oid from pg_database;
Thanks,
--
-David
david@pgmasters.net
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: david@pgmasters.net, chirupg@gmail.com, sfrost@snowman.net
Subject: Re: PgBackRest question?
In-Reply-To: <84f84e41-5bcd-022e-8832-376363ac3fd8@pgmasters.net>
References: <CA+RSxMjBtqwCVWQm3dRzZkkWS8hFKPY2b82KXwbZDtPvGF1oQg@mail.gmail.com> <20171213224505.GT4628@tamriel.snowman.net> <CA+RSxMgR-avEre8eCAkc795iNUiq_S3cmrvS1Lz_Lw6vZxdhPg@mail.gmail.com> <e252cb30-9707-3801-f688-75dd2cde4819@pgmasters.net> <CA+RSxMgQMmF2af+cqaAXZRbn9-cWGYyMpiLWQOP8Ef9Vceditw@mail.gmail.com> <f7da14c5-911f-9216-7c2e-db22101e77cb@pgmasters.net> <CA+RSxMjYu_06YY7Ktnqf7ZxoXFn-oJ2fhbL2ssKQxwTy-3j7XA@mail.gmail.com> <84f84e41-5bcd-022e-8832-376363ac3fd8@pgmasters.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox