From: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
To: Magnus Hagander <magnus@hagander.net>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: AW: archiving question
Date: Fri, 6 Dec 2019 11:06:45 +0000
Message-ID: <4e38f4d4599140d1ba51af475a19a2cf@zuerich.ch> (raw)
In-Reply-To: <CABUevEztLX=vhe=PY3qFAThmumAjraf9zDoVXLAtRrCyf9yxLw@mail.gmail.com>
References: <e0ca6acb3c13497aaf331708621f871f@zuerich.ch>
<20191204175618.GH6962@tamriel.snowman.net>
<200ee00c33104728b9a6b8df8ca90226@zuerich.ch>
<20191206014235.GG121835@paquier.xyz>
<8750e32c2f944480ae9dca5cf1fb2f06@zuerich.ch>
<CABUevEztLX=vhe=PY3qFAThmumAjraf9zDoVXLAtRrCyf9yxLw@mail.gmail.com>
> On Fri, Dec 6, 2019 at 10:50 AM Zwettler Markus (OIZ) <mailto:Markus.Zwettler@zuerich.ch> wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: Michael Paquier <mailto:michael@paquier.xyz>
>> Gesendet: Freitag, 6. Dezember 2019 02:43
>> An: Zwettler Markus (OIZ) <mailto:Markus.Zwettler@zuerich.ch>
>> Cc: Stephen Frost <mailto:sfrost@snowman.net>; mailto:pgsql-general@lists.postgresql.org
>> Betreff: Re: archiving question
>>
>> On Thu, Dec 05, 2019 at 03:04:55PM +0000, Zwettler Markus (OIZ) wrote:
>> > What do you mean hear?
>> >
>> > Afaik, Postgres runs the archive_command per log, means log by log by log.
>> >
>> > How should we parallelize this?
>>
>> You can, in theory, skip the archiving for a couple of segments and then do the
>> operation at once without the need to patch Postgres.
>> --
>> Michael
>
>
>Sorry, I am still confused.
>
>Do you mean I should move (mv * /backup_dir) the whole pg_xlog directory away and move it back (mv /backup_dir/* /pg_xlog) in case of recovery?
>
>No, *absolutely* not.
>
>What you can do is have archive_command copy things one by one to a local directory (still sequentially), and then you can have a separate process that sends these to the archive -- and *this* process can be parallelized.
>
>//Magnus
That has been my initial question.
Is there a way to tune this sequential archive_command log by log copy in case I have tons of logs within the pg_xlog directory?
Markus
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: Markus.Zwettler@zuerich.ch, magnus@hagander.net, michael@paquier.xyz, sfrost@snowman.net
Subject: Re: archiving question
In-Reply-To: <4e38f4d4599140d1ba51af475a19a2cf@zuerich.ch>
References: <e0ca6acb3c13497aaf331708621f871f@zuerich.ch> <20191204175618.GH6962@tamriel.snowman.net> <200ee00c33104728b9a6b8df8ca90226@zuerich.ch> <20191206014235.GG121835@paquier.xyz> <8750e32c2f944480ae9dca5cf1fb2f06@zuerich.ch> <CABUevEztLX=vhe=PY3qFAThmumAjraf9zDoVXLAtRrCyf9yxLw@mail.gmail.com> <4e38f4d4599140d1ba51af475a19a2cf@zuerich.ch>
* 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