Re: Tuning postgres for fast restore?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Tuning postgres for fast restore?
Дата
Msg-id dcc563d10902221757u31ea9e70g2eb57f9bc6a64e1e@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Tuning postgres for fast restore?  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-admin
On Sat, Feb 21, 2009 at 12:14 AM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:
> Tino Schwarze a écrit :
>> [...]
>> I'm going to pg_restore a database dump of about 220 GiB (uncompressed,
>> but most data is BLOBs). The machine has 8 GiB of memory and 8 cores.
>> Is there any advice to speed up restoring, postgresql.conf-wise?
>>
>> I already have a script which does the data loading and index creation
>> in parallel. I'm looking for advice regarding shared_mem, work_mem and
>> maintenance_mem - shall I raise them?
>>
>
> You should definitely raise shared_buffers and maintenance_work_mem.

Also, you can disable fsync during a restore if the machine's not
handling any other databases.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: database corruption help needed
Следующее
От: Nicola Mauri
Дата:
Сообщение: Re: Crash with data corruption under Windows