Re: pg_dump 2 gig file size limit on ext3

From: Chris Gamache <cgg007(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org, shridhar_daithankar(at)persistent(dot)co(dot)in
Subject: Re: pg_dump 2 gig file size limit on ext3
Date: 2002-12-06 18:10:20
Message-ID: 20021206181020.59607.qmail@web13804.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

An even better idea would be to

postgres(at)db:~# pg_dump db | /usr/bin/split -b 1024m - yourprefix_
That would split your dump into 1GB pieces. Easy to manage.

To get them back in

postgres(at)db:~# cat yourprefix_aa yourprefix_ab yourprefix_ac | psql -f -

This might even work... (Syntax might be a bit mangled, tho)

postgres(at)db:~# pg_dump db | /usr/bin/split -b 1024m - yourprefix_ | gzip
postgres(at)db:~# zcat yourprefix_aa.gz yourprefix_ab.gz yourprefix_ac.gz | psql
-f -

HTH

CG
--- Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in> wrote:
> On 6 Dec 2002 at 8:47, Tommi Maekitalo wrote:
> > how do you use pg_dump? Versions < 7.3 might not have large file support.
> But
> > you can use 'pg_dump db >dump.out'. pg_dump writes to stdout and do not
> have
> > to deal with the file itself. This is done by your shell. If your shell
> have
> > trouble you should change your shell or use split.
>
> And as pointed out in pg_dump documentation, zipping the dump on the fly is
> another possibility if you have CPU power..
>
> Bye
> Shridhar
>
> --
> critic, n.: A person who boasts himself hard to please because nobody tries
> to
> please him. -- Ambrose Bierce, "The Devil's Dictionary"
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matthew Gabeler-Lee 2002-12-06 18:14:40 Another planner bug with subqueries
Previous Message Bruce Momjian 2002-12-06 17:44:13 Re: [7.3] can't connect with SSL