Re: DROP TABLESPACE causes panic during recovery

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: DROP TABLESPACE causes panic during recovery
Дата
Msg-id 4111ABCF.1020701@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: DROP TABLESPACE causes panic during recovery  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> We do need to do that, but it will *not* solve this problem.  The
> scenario that causes the problem is
> 
>     CREATE TABLESPACE
>     ...
>     much time passes
>     ...
>     CHECKPOINT
>     ...
>     modify tables in tablespace
>     drop tables in tablespace
>     DROP TABLESPACE
>     ...
>     system crash
> 
> Now the system needs to replay from the last checkpoint.  It's going to
> hit updates to tables that aren't there anymore in a tablespace that's
> not there anymore.  There will not be anything in the replayed part of
> the log that will give a clue where that tablespace was physically.

Maybe we need to create a new system tablespace: pg_recovery

Then when this situation occurs, if the tablespace cannot be located, we 
recrated the objects in the system 'pg_recovery' tablespace or something.

I dunno :)

Chris



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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: DROP TABLESPACE causes panic during recovery
Следующее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: DROP TABLESPACE causes panic during recovery