Re: [HACKERS] Zeroing damaged pages

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Zeroing damaged pages
Дата
Msg-id 200603070312.k273C0R20398@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Zeroing damaged pages  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
>
> > +     /* Even if zero_damaged_pages is true, we don't want autovacuum zeroing. */
> > +     zero_damaged_pages = false;
>
> This is completely incorrect; you need to set the variable via GUC, else
> it will still be overridden from postgresql.conf if a SIGHUP arrives.
> I believe this would work:
>
>     SetConfigOption("zero_damaged_pages", "false",
>             PGC_SUSET, PGC_S_SESSION);

Done.

--
  Bruce Momjian   http://candle.pha.pa.us
  SRA OSS, Inc.   http://www.sraoss.com

  + If your life is a hard drive, Christ can be your backup. +

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Zeroing damaged pages
Следующее
От: Hans-Jürgen Schönig
Дата:
Сообщение: CREATE SYNONYM ...