Re: Weird behaviour with ALTER TABLE ... SET TABLESPACE ... statement

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Weird behaviour with ALTER TABLE ... SET TABLESPACE ... statement
Дата
Msg-id 18556.1223295799@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Weird behaviour with ALTER TABLE ... SET TABLESPACE ... statement  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: Weird behaviour with ALTER TABLE ... SET TABLESPACE ... statement  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> The trivial fix is to just force a checkpoint in ALTER TABLE SET 
> TABLESPACE. Can we do better than that? Perhaps only force a checkpoint 
> when we find that the file already exists.

If ALTER TABLE SET TABLESPACE is assuming that it can always use the
same relfilenode number in the new space as in the old, it's just plain
broken.  We need to fix that assumption.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Add relation fork support to pg_relation_size() function.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: About postgresql8.3.3 build in MS VS2005