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 1icsgn-0003ll-IW for pgsql-general@arkaria.postgresql.org; Thu, 05 Dec 2019 15:05:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icsgl-0004g0-QG for pgsql-general@arkaria.postgresql.org; Thu, 05 Dec 2019 15:05:07 +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 1icsgl-0004ft-GK for pgsql-general@lists.postgresql.org; Thu, 05 Dec 2019 15:05:07 +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 1icsgb-0007al-9q for pgsql-general@lists.postgresql.org; Thu, 05 Dec 2019 15:05:07 +0000 X-IronPort-AV: E=Sophos;i="5.69,281,1571695200"; d="scan'208";a="40926140" Received: from unknown (HELO SZHM27377.global.szh.loc) ([10.7.49.80]) by mx2.prm.szh.zone with ESMTP/TLS/AES256-GCM-SHA384; 05 Dec 2019 16:04:56 +0100 Received: from SZHM27370.global.szh.loc (10.7.50.50) by SZHM27377.global.szh.loc (10.7.49.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 5 Dec 2019 16:04:55 +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; Thu, 5 Dec 2019 16:04:55 +0100 From: "Zwettler Markus (OIZ)" To: Stephen Frost CC: "pgsql-general@lists.postgresql.org" Subject: AW: archiving question Thread-Topic: archiving question Thread-Index: AdWqwlvUkLwmdq8aTaOTg/cAtijecgAAWNYAAC5H5NA= Date: Thu, 5 Dec 2019 15:04:55 +0000 Message-ID: <200ee00c33104728b9a6b8df8ca90226@zuerich.ch> References: <20191204175618.GH6962@tamriel.snowman.net> In-Reply-To: <20191204175618.GH6962@tamriel.snowman.net> 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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >=20 > Greetings, >=20 > * Zwettler Markus (OIZ) (Markus.Zwettler@zuerich.ch) wrote: > > When there is a Postgres archiver stuck because of filled pg_xlog and a= rchive > directories... > > > > ... and the pg_xlog directory had been filled with dozens of GBs of xlo= gs... > > > > ...it takes ages until the archive_command had moved all xlogs from the > pg_xlog directory to the archive directory afterwards... > > > > ... and you get crazy if you have a 8GB archive directory while the > > pg_xlog directory had been pumped up to 100GB :( > > > > > > Any idea on this one? >=20 > Parallelizing the archive-push operation can be quite helpful to address = this. >=20 > Thanks, >=20 > Stephen What do you mean hear? Afaik, Postgres runs the archive_command per log, means log by log by log. How should we parallelize this?