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 1hQFYJ-0006M3-4R for pgsql-general@arkaria.postgresql.org; Mon, 13 May 2019 18:19:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQFYH-0001lb-RC for pgsql-general@arkaria.postgresql.org; Mon, 13 May 2019 18:19:53 +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 1hQFYH-0001lR-Gu for pgsql-general@lists.postgresql.org; Mon, 13 May 2019 18:19:53 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQFYD-0007vu-Tv for pgsql-general@postgresql.org; Mon, 13 May 2019 18:19:53 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 361A125AF2; Mon, 13 May 2019 14:19:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 13 May 2019 14:19:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=h 9iANBxblClS1lUF8eL8xZ3ID2laCWuvGF7fjh3hqJU=; b=PhPIlNI+DO2Hqv3bA 0NREZp0opKWsi16QtS+uuk/uEI5+lN3pMT3wCoelyy/RZ1HV3eN33u72DsJomrXS FSUgvOF399/Vfu8iKX9O2oW22u3NS7WBiEh9Gs0vQwWdPBk5cRChbGy1IEXCbnxf bYr6smpZjg8TnMMqz9DOdXEP7Q76b0QWNGoW7263/uGb0n6M2WWzyvyfY5cD/paP /R1uOfTH2eYpb3WJ9M/083klGhlKAnyAWbbvrJVzOFBQbiPejeE6ULY1IBf1G3GD G02xX/lYwLiPKW/UMjvrWSbkGH9/ytz5v1MQQfCHwKpM3jUp6v++n4mK6ULWpd8j V2mSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=h9iANBxblClS1lUF8eL8xZ3ID2laCWuvGF7fjh3hq JU=; b=ZBl5z4E/Q+x8t/KJ3Sg878MO0kNMKURmSCRSzidCNO+QKJevzEncaQna5 Txn79jn0vYG5JUlhsVp75Tbz9NXBvvO/80KabjaLq1Qv3k+isTUYB2ZTPw0glIQp A19qlKkelh0pg2WRwHtW2AY3kE90ypD5H8/BufYXanlAvn7NNRvb+qrqsTD5IBSN qSojS/gHt3YyrlEav9Y2cogxa24g4X7VfaUIZeMP/5SiA+R3PY38bj6w/VqH6/dw aReKbM3LGIh6n8UEGdpM4xY8dS3P2wOsfDxOtsEN6ArC7gC/aHN/mwyrf4nUuuI+ CY3iokBPiq4g75ktQmrrIZJHtIA7w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrleeggdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeehnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeehtddrudeljedrkedtrddvne curfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghv vghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 014CE10379; Mon, 13 May 2019 14:19:46 -0400 (EDT) Subject: Re: does postgresql backup require additional space on disk To: Julie Nishimura , "pgsql-general@lists.postgresql.org" , pgsql-general References: From: Adrian Klaver Message-ID: Date: Mon, 13 May 2019 11:19:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/13/19 10:59 AM, Julie Nishimura wrote: > Hello, > we are almost out of disk space on one of our servers (99% full). If we > run pg_dump to a diff location, does it require any additional disk > space on our current server? I am asking, because on some other > software, a backup might open transaction which keeps growing and > eventually consume all space, keeping tran open for the backup duration. > Please clarify? Thanks A pg_dump is a point in time snapshot of the database, so if the cluster is running then it will advance past the dump snapshot. If the cluster is not active(close off connections to all but pg_dump) then pg_dump will be the only transaction. I think the first thing to ask is what you are trying to achieve? -- Adrian Klaver adrian.klaver@aklaver.com