Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idAFr-0000kW-LJ for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 09:50:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1idAFq-0006em-FZ for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 09:50:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idAFq-0006ec-4c for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 09:50:30 +0000 Received: from mx2.stadt-zuerich.ch ([194.56.33.11]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idAFn-0000o3-S6 for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 09:50:29 +0000 X-IronPort-AV: E=Sophos;i="5.69,284,1571695200"; d="scan'208";a="41039843" Received: from unknown (HELO SZHM29232.global.szh.loc) ([10.7.50.90]) by mx2.prm.szh.zone with ESMTP/TLS/AES256-GCM-SHA384; 06 Dec 2019 10:50:27 +0100 Received: from SZHM27370.global.szh.loc (10.7.50.50) by SZHM29232.global.szh.loc (10.7.50.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 6 Dec 2019 10:50:26 +0100 Received: from SZHM27370.global.szh.loc ([fe80::25ce:879f:5795:3325]) by SZHM27370.global.szh.loc ([fe80::25ce:879f:5795:3325%10]) with mapi id 15.01.1713.004; Fri, 6 Dec 2019 10:50:26 +0100 From: "Zwettler Markus (OIZ)" To: Michael Paquier CC: Stephen Frost , "pgsql-general@lists.postgresql.org" Subject: AW: archiving question Thread-Topic: archiving question Thread-Index: AdWqwlvUkLwmdq8aTaOTg/cAtijecgAAWNYAAC5H5NAAFEucgAAS5z6Q Date: Fri, 6 Dec 2019 09:50:26 +0000 Message-ID: <8750e32c2f944480ae9dca5cf1fb2f06@zuerich.ch> References: <20191204175618.GH6962@tamriel.snowman.net> <200ee00c33104728b9a6b8df8ca90226@zuerich.ch> <20191206014235.GG121835@paquier.xyz> In-Reply-To: <20191206014235.GG121835@paquier.xyz> Accept-Language: de-CH, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.7.48.250] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > -----Urspr=FCngliche Nachricht----- > Von: Michael Paquier > Gesendet: Freitag, 6. Dezember 2019 02:43 > An: Zwettler Markus (OIZ) > Cc: Stephen Frost ; pgsql-general@lists.postgresql.or= g > Betreff: Re: archiving question >=20 > 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 l= og. > > > > How should we parallelize this? >=20 > 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 aw= ay and move it back (mv /backup_dir/* /pg_xlog) in case of recovery? Markus