Re: DB Dump Size

Поиск
Список
Период
Сортировка
От Thomas Jacob
Тема Re: DB Dump Size
Дата
Msg-id 20080814083003.GA456@internet24.de
обсуждение исходный текст
Ответ на DB Dump Size  (<steve@outtalimits.com.au>)
Ответы Re: DB Dump Size  (<steve@outtalimits.com.au>)
Список pgsql-admin
On Thu, Aug 14, 2008 at 12:06:53PM +1000, steve@outtalimits.com.au wrote:
> Hi all,
>
> I am curious as to why a pg dump of database "name" is 2.9gig. But is
> measured at 1.66gig by:
> SELECT pg_database_size(pg_database.datname) AS db_size FROM pg_database
> WHERE pg_database.datname='name' ;
>
> This dump was about 1 gig around 12 months ago.

Which options do you use for pg_dump? And what version of PosgreSQL are
you running?

In general it's not that strange for an uncompressed
dump to be larger than the database size, plain SQL
dumps are much less space efficient than a DBMS can
be when it stores the data on disk. But of course, there
also indices to consider.

Have you tried pg_dump -Fc?

> I am performing a monthly vacuum full on the database and a nightly vacuum
> all

That should only impact the pg_database_size.


Вложения

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

Предыдущее
От:
Дата:
Сообщение: DB Dump Size
Следующее
От: Carol Walter
Дата:
Сообщение: New postgres installation