Re: [HACKERS] compression in LO and other fields

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: [HACKERS] compression in LO and other fields
Дата
Msg-id 382C9080.103696C9@tm.ee
обсуждение исходный текст
Ответ на Re: [HACKERS] compression in LO and other fields  ("Ross J. Reedstrom" <reedstrm@wallace.ece.rice.edu>)
Список pgsql-hackers
Don Baccus wrote:
> 
> At 05:15 PM 11/12/99 +0100, Karel Zak - Zakkr wrote:
> 
> >> pg_dump database | gzip >db.out.gz
> 
> > Thank... :-))
> 
> > But mysqldump --compress is very nice.
> 
> Why add functionality for something that can be done so
> easily by piping the output of pg_dump?
> 
> This is exactly the kind of coupling of tools that pipes
> were invented for.

Exactly !

Another version of the same is used when dumping databases 
bigger than 2GB (or whatever the file system size limit is)

just do:

pg_dump database | gzip | split -b 1000000000 db.out.gz.

and restore it using

cat db.out.gz* | gunzip > psql

you could also do other fancy things with your dumps - send 
them directly to tape storage in Japan or whatever ;)

If you need that functionality often enough then write a shell 
script.

---------------
Hannu


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: [HACKERS] compression in LO and other fields
Следующее
От: Frans Van Elsacker
Дата:
Сообщение: Re: [HACKERS] union problem version 6.5.3