Re: [HACKERS] "CANNOT EXTEND" - - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: [HACKERS] "CANNOT EXTEND" -
Date
Msg-id 36F0A1B0.A3993E61@trust.ee
Whole thread Raw
In response to Re: [HACKERS] "CANNOT EXTEND" -  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: OID vs SERIAL? (Was: Re: [HACKERS] Sequences....)
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] Re: vacuum slowness