Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rBKDL-00APLO-Kl for pgsql-admin@arkaria.postgresql.org; Thu, 07 Dec 2023 19:39:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rBKDK-0025lh-9Q for pgsql-admin@arkaria.postgresql.org; Thu, 07 Dec 2023 19:39:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rBKDJ-0025lX-SE for pgsql-admin@lists.postgresql.org; Thu, 07 Dec 2023 19:39:13 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rBKDH-009IN4-BJ for pgsql-admin@lists.postgresql.org; Thu, 07 Dec 2023 19:39:12 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id CB25E3200A43; Thu, 7 Dec 2023 14:39:09 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 07 Dec 2023 14:39:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1701977949; x= 1702064349; bh=nReP4aIXbuq7G4g6hA4wPpU0/k0cC17woiDQzFTRgnE=; b=o 3eTZILrXvM5f732KCiyCHU83fJaV1nx5/1hCpT4MQUtfIkP8MOdoId7ccabGW8bB KX1AiH5BCbLjF0OoiZmRE4IDTRJyp2P6UMFmmFF7oJ6sU0b8NM/WZMi4FPbI06Gx FLA0ZGLBRJ2xqlYfsVImnv0ED+P5iuC7OlpLrlvr8xVeh7OYYIE8p7wt6gMxhtov KEXhDDy+bYvWh6e8XobgejtAfzJkm91TlpTfPsgr/l4fhGcmTeie5/r6rY56Cldg Miik60ktjLGPzP81xJIY52yFpuZ1JQhtjHrI+4hi9gppkcSSqqOsDmWBkyCIBK9n 9kMRClnCtDIhjxegwqxaw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekfedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepffffuddutdduhfegudfgleeuuddvvedvfeffkefhgfdu vdfhtedtleeludfgteeinecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh dpkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 7 Dec 2023 14:39:08 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1701977946; bh=DI49znF7Es9eizDbwK0B8MpMXtF2aIbTw5+eUC2cxOo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Tw2+STayhvxy8uJxbjYatg1VZHgX+vp+antwW6zdzS46rZE/4TCe0G/rVuP5lBngD SKWbzuAGplopmvftxVCaYgf3KJy92KXb8NPu8zUU2ZIbU36zh301tvcz1xXFHVFjk4 BJfHnSRUq9ttOOSM+t0phdb4TtpMMDsT9ci1HJ3/hwG7uq9VgOzXWwDNg7JlYb4GvT SAVnJZLoSuFEhUBzqBUSBK8dEDvQX2HyCxEGKJq4CX0ctGeFL+Z3ExNaAhQ4HHTaHH kN8k975no2Be1yrmKBO2xd9VnHui1JS8FQJX1LlGSXcIidsGDub5EAdI61Fvf1luYw 6v41ujq3TTX2w== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id E0819C5; Thu, 7 Dec 2023 20:39:06 +0100 (CET) Date: Thu, 7 Dec 2023 20:39:06 +0100 From: Alvaro Herrera To: M Sarwar Cc: Tom Lane , Holger Jakobs , "pgsql-admin@lists.postgresql.org" , "rajeshkumar.dba09@gmail.com" Subject: Re: Pg_dump Message-ID: <202312071939.dwcjj5lwivaa@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Dec-07, M Sarwar wrote: > I agree with Tom. This is making the difference. I ran into this scenario several times in the past. > But whole database is becoming slow when the dump is happening . For large databases with very high rate of updates, a running pg_dump can prevent vacuum from removing old versions of rows. This can make the operations slower because of accumulation of bloat. For such situations, pg_dump is not really recommended. It's better to use a physical backup (say, pgbarman), or if you really need a pg_dump output file for some reason, create a replica (with _no_ hot_standby_feedback) and run pg_dump there. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "I'm always right, but sometimes I'm more right than other times." (Linus Torvalds) https://lore.kernel.org/git/Pine.LNX.4.58.0504150753440.7211@ppc970.osdl.org/