Re: pg_dump max file size exceeded

Поиск
Список
Период
Сортировка
От Jyry Kuukkanen
Тема Re: pg_dump max file size exceeded
Дата
Msg-id Pine.LNX.4.33L0.0203200756300.6883-100000@cyclone.neutech.fi
обсуждение исходный текст
Ответ на Re: pg_dump max file size exceeded  (Tuna Chatterjee <tchatter@alert.infoplease.com>)
Список pgsql-admin
On Tue, 2002-03-19 at 16:39, Fred Moyer wrote:
> hey fellow pg'ers.
>
> ran time pg_dump -c --verbose database > datafile.psql from the command line
> and got a file size limit exceeded.  datafile.psql stopped at 2 gigs.  any
> ideas how to exceed that limit?
>
> redhat 7.2, 2.4.9-31 kernel
> postgres 7.2


Hello Fred

Are you trying to dump over NFS? NFS has a 2G file size limit and AFAIK
there is no simple way to get around it.

Howver, you could compress you dump on the fly:
pg_dump -c --verbose database |gzip -c >datafile.psql.gz

or

pg_dump -c --verbose database | bzip2 -c >datafile.psql.bz2
(for better compression)

restoring:
zcat datafile.psql.gz | psql database

or

bzcat datafile.psql.gz | psql database


Cheers,
--Jyry
C:-(    C:-/    C========8-O    C8-/    C:-(

Kansainvälisten kisojen tulosteksteissä käytetään
kilpailijoiden nimiin äänestoainetta.



В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump max file size exceeded
Следующее
От: Rasmus Mohr
Дата:
Сообщение: Failure loading TCL/u