Re: pgsql: Get rid of SET LOGGED indexes persistence kludge

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Get rid of SET LOGGED indexes persistence kludge
Дата
Msg-id 27238.1416073917@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Get rid of SET LOGGED indexes persistence kludge  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
Tom Lane <tgl@sss.pgh.pa.us> writes:
> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
>> Get rid of SET LOGGED indexes persistence kludge

> The buildfarm suggests that this patch fails under CLOBBER_CACHE_ALWAYS.

After a bit of study, the explanation is almost certainly that you can't
just do this in reindex_index:

+       /* Set the relpersistence of the new index */
+       iRel->rd_rel->relpersistence = persistence;

Probably the right fix is to add a persistence parameter to
RelationSetNewRelfilenode.  The existing patch seems pretty
klugy without that anyway.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Get rid of SET LOGGED indexes persistence kludge
Следующее
От: Simon Riggs
Дата:
Сообщение: pgsql: Emit msg re skipping ANALYZE for absent inh tree