pg_dump error - filesystem full

Started by Poul Møller Hansenabout 20 years ago5 messagesgeneral
Jump to latest
#1Poul Møller Hansen
freebsd@pbnet.dk

/tmp: write failed, filesystem is full
pg_dump: [tar archiver] could not write to tar member (wrote 0,
attempted 101)

Is there a way to make pg_dump use /var/tmp as a temporary filespace
instead ?

Thanks, Poul

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Poul Møller Hansen (#1)
Re: pg_dump error - filesystem full

Am Dienstag, 7. M�rz 2006 11:13 schrieb Poul M�ller Hansen:

Is there a way to make pg_dump use /var/tmp as a temporary filespace
instead ?

Try export TMPDIR=/var/tmp.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#2)
Re: pg_dump error - filesystem full

Peter Eisentraut <peter_e@gmx.net> writes:

Am Dienstag, 7. M�rz 2006 11:13 schrieb Poul M�ller Hansen:

Is there a way to make pg_dump use /var/tmp as a temporary filespace
instead ?

Try export TMPDIR=/var/tmp.

Also, unless you have a really good reason to be using -Ft dump format,
I'd recommend -Fc format instead. It's better tested and doesn't suffer
from various limitations of the tar format, notably the need for a temp
file.

regards, tom lane

#4Poul Møller Hansen
freebsd@pbnet.dk
In reply to: Tom Lane (#3)
Re: pg_dump error - filesystem full

Try export TMPDIR=/var/tmp.

Also, unless you have a really good reason to be using -Ft dump format,
I'd recommend -Fc format instead. It's better tested and doesn't suffer
from various limitations of the tar format, notably the need for a temp
file.

Thanks, it takes much longer time, but the filesize is only 1/5 of the
tar size, so it's ok.
Also great with the TMPDIR hadn't thought about that.

Poul

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Poul Møller Hansen (#4)
Re: pg_dump error - filesystem full

=?ISO-8859-1?Q?Poul_M=F8ller_Hansen?= <freebsd@pbnet.dk> writes:

Also, unless you have a really good reason to be using -Ft dump format,
I'd recommend -Fc format instead.

Thanks, it takes much longer time, but the filesize is only 1/5 of the
tar size, so it's ok.

If you're more concerned about time than space, I think you can turn off
the compression that -Fc format uses by default.

regards, tom lane