From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: does postgresql backup require additional space on disk
Date: Mon, 13 May 2019 11:19:46 -0700
Message-ID: <d8c3b0a7-c193-3742-d20e-ba046dcf88cb@aklaver.com> (raw)
In-Reply-To: <BYAPR08MB5014E959330C8E249341F66CAC0F0@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB5014E959330C8E249341F66CAC0F0@BYAPR08MB5014.namprd08.prod.outlook.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, juliezain@hotmail.com
Subject: Re: does postgresql backup require additional space on disk
In-Reply-To: <d8c3b0a7-c193-3742-d20e-ba046dcf88cb@aklaver.com>
References: <BYAPR08MB5014E959330C8E249341F66CAC0F0@BYAPR08MB5014.namprd08.prod.outlook.com> <d8c3b0a7-c193-3742-d20e-ba046dcf88cb@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox