Re: incoorect restore_command

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
Cc: Philipp Gramzow <phil(at)philphonic(dot)de>, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: incoorect restore_command
Date: 2021-02-26 05:42:03
Message-ID: YDiKK883GvoSKj2z@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Thu, Feb 25, 2021 at 06:03:57PM +0900, Fujii Masao wrote:
> Regarding the section "Standalone Hot Backups", all the directories and
> file seem to be placed under /var/lib/pgsql, so at least for me it looks a bit
> strange to change only the path of archive directory. So I don't think that
> we need to do this change.
>
> -tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/
> +tar -rf /var/lib/pgsql/backup.tar /mnt/server/archivedir/
>
> Same as above.

Okay. I found the thing a bit inconsistent while looking at the whole
picture. Anyway, dropped those two parts.

> -archive_command = 'gzip &lt; %p &gt; /var/lib/pgsql/archive/%f'
> +archive_command = 'gzip &lt; %p &gt; /mnt/server/archivedir/%f.gz'
> </programlisting>
> You will then need to use <application>gunzip</application> during recovery:
> <programlisting>
> -restore_command = 'gunzip &lt; /mnt/server/archivedir/%f &gt; %p'
> +restore_command = 'gunzip &lt; /mnt/server/archivedir/%f.gz &gt; %p'
>
> LGTM. Thanks for the patch!

Thanks for the review. I have applied only this part, then.
--
Michael

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Dmitriy Kuzmin 2021-02-26 12:32:27 Re: Inaccuracy in wal_receiver_status_interval parameter description
Previous Message Magnus Hagander 2021-02-25 16:07:13 Re: set auto commit is not working