Re: Fast index build vs. PITR

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: Fast index build vs. PITR
Дата
Msg-id Pine.LNX.4.58.0406011130140.6621@linuxworld.com.au
обсуждение исходный текст
Ответ на Fast index build vs. PITR  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Fast index build vs. PITR  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: Fast index build vs. PITR  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, 31 May 2004, Tom Lane wrote:

[snip]

> I thought for a little bit about a magic "reconstruct the index" WAL
> entry that would invoke the index build procedure in toto, but that
> doesn't look like it will fly either.  (Two problems: during crash
> recovery, you couldn't be sure that what's on disk for the underlying
> table exactly matches the index you need to build --- it could be a
> later state of the table; and besides, the environment of the WAL replay
> process isn't capable of running user-defined functions, so it couldn't
> work for functional indexes.)
>
> So AFAICS, we've got to dump the index contents into WAL to support
> PITR.  This is a tad annoying.

Is it possible in this case to dump the index block by block into the log
after it has been generated? It seems to me this should reduce the
amount of data we write to WAL and (therefore) speed up the rebuild.

Gavin


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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Official Freeze Date for 7.5: July 1st, 2004
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Can't detect time zone