Re: Minimize checkpointer and walwriter io during pg_restore

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Minimize checkpointer and walwriter io during pg_restore
Дата
Msg-id 90a122788a5d29778873036617d5c9d421c7596b.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Minimize checkpointer and walwriter io during pg_restore  (Ron Johnson <ronljohnsonjr@gmail.com>)
Ответы Re: Minimize checkpointer and walwriter io during pg_restore
Список pgsql-admin
On Tue, 2024-06-04 at 11:32 -0400, Ron Johnson wrote:
> > I would not set "fsync" to off.  It won't make a measurable difference for
> > pg_restore, and it may break your database.  The same applies to "full_page_writes".
>
> If the pg_restore fails, I'm dropping the database no matter what.  A few more minutes
> to drop $PGDATA and re-run initdb won't be noticed compared to the length of the pg_restore.

The *cluster* would be corrupted.
You'd have to start with a new "initdb".
If you want that... but it is a high price for very moderate gains.

> > What might make a difference is if you use the --single-transaction option of
> > pg_restore.
>
> A single 4+TB transaction??

Yes, sure.  Why not?

Yours,
Laurenz Albe



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

Предыдущее
От: Kashif Zeeshan
Дата:
Сообщение: Re: Unable to create publication
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: Minimize checkpointer and walwriter io during pg_restore