Re: pg_dump of a big table

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump of a big table
Date: 2009-07-13 19:29:24
Message-ID: 20090713192924.GZ5407@samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jul 13, 2009 at 06:57:43PM +0000, Nelson Correia wrote:
> Running pg_dump from another machine needs much space on the DB
> host? Or it just outputs the data as it goes?

pg_dump should use very little space on the server, it just streams it
out to where ever you tell it. You could run pg_dump on another host,
or do something like:

pg_dump mydb | gzip | ssh otherbox "cat > out.sql.gz"

--
Sam http://samason.me.uk/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Kerr 2009-07-13 19:30:10 Re: UUID datatype question
Previous Message Tom Lane 2009-07-13 19:28:09 Re: UUID datatype question