why is pg_dump so much smaller than my database?

Поиск
Список
Период
Сортировка
От Carson Gross
Тема why is pg_dump so much smaller than my database?
Дата
Msg-id CAO92UoHBOaWauifeH0dznG=YvtJa85FezTHGFLRtVb7cGGmzPA@mail.gmail.com
обсуждение исходный текст
Ответы Re: why is pg_dump so much smaller than my database?  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
I've got a pretty big database (~30 gigs) and when I do a pg_dump, it ends up only being 2 gigs.

The database consists mainly of one very large table (w/ a few varchar columns) which, according to pg_relation_size() is 10 gigs and pg_total_relation_size() is 26 gigs (we need to drop some indexes there.)  

I'm just trying to get my head around the pg_dump being an order of magnitude smaller than the darned database itself.  I would thing that the db would offer more efficient encoding for a lot of stuff vs. an ascii file.

Thanks,
Carson

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

Предыдущее
От: Arvind Singh
Дата:
Сообщение: PG Log
Следующее
От: John R Pierce
Дата:
Сообщение: Re: why is pg_dump so much smaller than my database?