Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUZTk-0005LQ-9X for pgsql-performance@arkaria.postgresql.org; Fri, 20 Jan 2017 13:43:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cUZTj-00039c-SZ for pgsql-performance@arkaria.postgresql.org; Fri, 20 Jan 2017 13:43:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cUZS3-00017a-NZ for pgsql-performance@postgresql.org; Fri, 20 Jan 2017 13:41:59 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUZS0-0008At-B7 for pgsql-performance@postgresql.org; Fri, 20 Jan 2017 13:41:58 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id F32105F796; Fri, 20 Jan 2017 08:40:54 -0500 (EST) Date: Fri, 20 Jan 2017 08:40:54 -0500 From: Stephen Frost To: Vladimir Borodin Cc: Pavel Stehule , Dinesh Chandra 12108 , "Madusudanan.B.N" , "pgsql-performance@postgresql.org" Subject: Re: Backup taking long time !!! Message-ID: <20170120134054.GH18360@tamriel.snowman.net> References: <0fb0c8c3f69340a3a7d70b1c39fa2b2c@cyient.com> <23dc5b1ea9604ec3afdaabdd15491085@cyient.com> <20170120122224.GF18360@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="W8H4ZJu+ON5Wa/ox" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 08:08:03 up 195 days, 14:32, 2 users, load average: 0.29, 0.22, 0.17 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org --W8H4ZJu+ON5Wa/ox Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Vladimir, * Vladimir Borodin (root@simply.name) wrote: > > 20 =D1=8F=D0=BD=D0=B2. 2017 =D0=B3., =D0=B2 15:22, Stephen Frost =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): > >> This process can be automatized by some applications like barman > >> http://www.pgbarman.org/ > >=20 > > Last I checked, barman is still single-threaded. > >=20 > > If the database is large enough that you need multi-process backup, I'd > > suggest looking at pgbackrest- http://www.pgbackrest.org. > >=20 > > pgbackrest has parallel backup, incremental/differential/full backup > > support, supports compression, CRC checking, and a whole ton of other > > good stuff. >=20 > Increments in pgbackrest are done on file level which is not really effic= ient. We have done parallelism, compression and page-level increments (9.3+= ) in barman fork [1], but unfortunately guys from 2ndquadrant-it don=E2=80= =99t hurry to work on it. We're looking at page-level incremental backup in pgbackrest also. For larger systems, we've not heard too much complaining about it being file-based though, which is why it hasn't been a priority. Of course, the OP is on 9.1 too, so. As for your fork, well, I can't say I really blame the barman folks for being cautious- that's usually a good thing in your backup software. :) I'm curious how you're handling compressed page-level incremental backups though. I looked through barman-incr and it wasn't obvious to me what was going wrt how the incrementals are stored, are they ending up as sparse files, or are you actually copying/overwriting the prior file in the backup repository? Apologies, python isn't my first language, but the lack of any comment anywhere in that file doesn't really help. > And actually it would be much better to do a good backup and recovery man= ager part of the core postgres. Sure, but that's not going to happen for 9.1, or even 9.6, and I doubt PG10 is going to suddenly get parallel base-backup with compression. I've been discussing ways to improve the situation with Magnus and we do have some ideas about it, but that's really an independent effort as we're still going to need a tool for released versions of PG. Thanks! Stephen --W8H4ZJu+ON5Wa/ox Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYghNmAAoJEO1sijiDR2RVG5YQALObrlDleiPGwkWykGi5CyuD GwYqgTTB7/HNhQ7Z/uDWk15Hs3MsxrKpnUP5KnXWyUQp1xzalBG9JqjeZ+LmGVD6 0SFr+lJjfiHliz5v55p+WbUVMb59+i+hOt0TT3LNy/BrGjXFSq1Js3X4UUqGAWfP VIrJ855Pi3TpnZdw2tIIF+hTS1CwxQ55/rcNEelY4LD4WXyLVTqIkHLj7hJYgXjp IabzruxnxK9+OCg7oMo1BOe/DRU9WnYZK1FkK1/B79l1n0ee02d7r+aOU0p6qdO8 2Qe15uAd2Ns3ohSOLg9agtSdLLMXt4Ci28/4MlmjFP7H9ytIJtPmP/udoF2Cja/S HgYSLyICILdhUo4VONK7fghB+uK1VenRtk2PskPi8dPkXkQq6lY/pQOsd1OE48lu qbdgnjlbJElGNPJZvW6crjrDrZQJbCQTnYH0JXe8o8SJxMgX0zpeSSJGTfxFUrCO I+NLyvgdyeJP65C/dAug/48DdLYXZwvR8I7GssSzgpJ3q6MnGfRC+ckULqK89hSe vsr7aB7TdEKr2qk57OPBxc3A7Attp91p4lwiCt9UBKSob0g2YaQoWMpOLDt9kZ3Y Vw8gHx0pXpCKFuk1lkh8oZbukrnV89EZtNDYIFZcaalngNwI4ymT5dhhvEeWKb4c IfrRJJDUDr0m3yrdyzTb =H3ez -----END PGP SIGNATURE----- --W8H4ZJu+ON5Wa/ox--