Re: Why copy_relation_data only use wal when WAL archiving is enabled

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Why copy_relation_data only use wal when WAL archiving is enabled
Дата
Msg-id 471497A5.9040907@enterprisedb.com
обсуждение исходный текст
Ответ на Why copy_relation_data only use wal when WAL archiving is enabled  ("Jacky Leng" <lengjianquan@163.com>)
Список pgsql-hackers
Jacky Leng wrote:
> If I run the database under non-archiving mode, and execute the following 
> command:
>      alter table t set tablespace tblspc1;
> Isn't it possible that the "new t" cann't be recovered? 

No. At the end of copy_relation_data we call smgrimmedsync, which fsyncs
the new relation file.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: "Jacky Leng"
Дата:
Сообщение: Why copy_relation_data only use wal when WAL archiving is enabled
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Windows and locales and UTF-8 (oh my)