Bruce Momjian wrote:
>
> [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > The flat files are sitting at 1.9 GB right now (the primary email table).
> >
> > So I'm approaching the point where I can't backup using the COPY command.
> >
> > I'm probably using the wrong OS for this. But the performance of postgres is
> > still dazzling me (some people complain about the performance, but when I
> > see it pick 10,000 rows out of 1.4 million, sort them, and return them in a
> > second, I'm blown away).
>
> Please see if you can create files over 2 gig. I believe is it only OS
> bugs in dealing with exactly 2gig files that is the problem.
also note that pg_dump can write to a pipe, so you can use it thus :
> pg_dump megabase | split -b 500000k - megabase.dump.
> createdb new_megabase
> cat megabase.dump.* | psql new_megabase
to achieve space-saving, you can also pipe the thing through g(un)zip
---------------------
Hannu