Re: Out of space making backup - Mailing list pgsql-general

From Tom Lane
Subject Re: Out of space making backup
Date
Msg-id 4812.1261758232@sss.pgh.pa.us
Whole thread Raw
In response to Out of space making backup  (Farhan Malik <malikpiano@gmail.com>)
Responses Re: Out of space making backup  (Farhan Malik <malikpiano@gmail.com>)
List pgsql-general
Farhan Malik <malikpiano@gmail.com> writes:
> When making a backup of my database I run out of space. �I tell it to
> put the backup file on my K: drive, which has tons of free space, but
> during the backup postgresql creates a temporary folder on my C: Drive
> where it initially writes data. �I don't have enough space on my C:
> drive for all the data and so I get an out of space error. �Is there a
> way to have postgre use one my drives with lots of free space for the
> temporary folder? �I'm using version 8.3.9-1.

Reading between the lines, I suspect you are trying to use 'tar' output
format, which does have a need to make temp files that can be large.
If I guessed right, I'd suggest using 'custom' format instead.  There
really is no advantage to tar format, and several disadvantages besides
this one.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Why grantor is owner in this case?
Next
From: Farhan Malik
Date:
Subject: Re: Out of space making backup