Re: Why copy_relation_data only use wal when WAL archiving is enabled - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Why copy_relation_data only use wal when WAL archiving is enabled
Date
Msg-id 471497A5.9040907@enterprisedb.com
Whole thread Raw
In response to Why copy_relation_data only use wal when WAL archiving is enabled  ("Jacky Leng" <lengjianquan@163.com>)
List 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 by date:

Previous
From: "Jacky Leng"
Date:
Subject: Why copy_relation_data only use wal when WAL archiving is enabled
Next
From: Magnus Hagander
Date:
Subject: Re: Windows and locales and UTF-8 (oh my)