Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gASpe-0003xw-70 for pgsql-general@arkaria.postgresql.org; Thu, 11 Oct 2018 04:44:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gASpb-0001Gv-QU for pgsql-general@arkaria.postgresql.org; Thu, 11 Oct 2018 04:44:15 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gASpb-0001Gn-J0 for pgsql-general@lists.postgresql.org; Thu, 11 Oct 2018 04:44:15 +0000 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gASpZ-0001kZ-3J for pgsql-general@lists.postgresql.org; Thu, 11 Oct 2018 04:44:15 +0000 Received: from smtp1.mailbox.org (unknown [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 3345649968; Thu, 11 Oct 2018 06:44:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id 56qfjArJYVXJ; Thu, 11 Oct 2018 06:44:10 +0200 (CEST) Message-ID: <55cde7f327bef685248b1949adcbc17756b2cc72.camel@cybertec.at> Subject: Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup. From: Laurenz Albe To: Raghavendra Rao J S V , Pavan Teja Cc: pgsql-general@lists.postgresql.org Date: Thu, 11 Oct 2018 06:44:08 +0200 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Please bottom-post, otherwise the thread becomes hard to read. On Thu, 2018-10-11 at 08:44 +0530, Raghavendra Rao J S V wrote: > We are using postgresql 9.2. It doesn't contain the option. > > Please guide me any other approaches to improve the performance of pg_dump. > > On Thu 11 Oct, 2018, 8:05 AM Pavan Teja, wrote: > > You can use -j jobs option to speed up the process. > > > > Hope it works. > > > > On Thu, Oct 11, 2018, 8:02 AM Raghavendra Rao J S V wrote: > > > pg_dump is taking more time. Please let me know which configuration setting we > > > need to modify to speedup the pg_dump backup.We are using 9.2 version on Centos Box. There you have your first configuration change to speed up pg_dump: upgrade from 9.2 to a release that is still supported. And please don't tell me that you cannot / may not. If your data are important for you, and you really want that speed-up, you can. Anyway, to make pg_dump faster with the -j option, you need to use the "directory format" (-F d). Other options to speed up pg_dump are limited: you can get faster storage so that sequential scans are faster or more memory so that more of the data resides in the filesystem cache. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com