From: | "Tels" <nospam-pg-abuse(at)bloodgate(dot)com> |
---|---|
To: | "Vaishnavi Prabakaran" <vaishnaviprabakaran(at)gmail(dot)com> |
Cc: | "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] [PATCH] Tap test support for backup with tablespace mapping |
Date: | 2017-12-27 09:09:35 |
Message-ID: | 538b2352c4e55cd7ef9764ab28d7923b.squirrel@sm.webmail.pair.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dear Vaishnavi,
On Tue, December 26, 2017 8:58 pm, Vaishnavi Prabakaran wrote:
> Hi All,
>
> I have added support in Postgres TAP test framework to backup a data
> directory with tablespace mapping. Also added support to move the backup
> directory contents to standby node, because current option to init the
> standby from backup does not support copying softlinks, which is needed
> when tablespace mapping is involved in backup.
>
> Added a new test to existing streaming replication tap test to demonstrate
> the usage of these new APIs.
>
> Attached the patch, Hope this enhancement is useful.
>
> Thanks & Regards,
> Vaishnavi,
> Fujitsu Australia.
>
Thank you for the path, I saw these things:
* backup_withtablespace() does not have any documentation?
* The mkdir calls do not set a mask for the created dir, defaulting to
0777 - is this what is wanted here?
* none of the mkdir, chdir etc. calls check any error code, e.g. what
happens if one of them fails?
* different indentation between rmdir and move (tab vs. spaces):
+ rmdir($data_path);
+ move("$backup_path", "$self->{_basedir}/pgdata")
Best regards,
Tels
From | Date | Subject | |
---|---|---|---|
Next Message | Arthur Zakirov | 2017-12-27 09:20:00 | Re: [PROPOSAL] Shared Ispell dictionaries |
Previous Message | Konstantin Knizhnik | 2017-12-27 08:34:37 | Re: Postgres with pthread |