Re: alter table xxx set unlogged take long time

Поиск
Список
Период
Сортировка
От Jim Mlodgenski
Тема Re: alter table xxx set unlogged take long time
Дата
Msg-id CAB_5SRdsCDx8Mq974S=WxWBG+vSD7axZVtAoTvMvzQ+6ghffuA@mail.gmail.com
обсуждение исходный текст
Ответ на alter table xxx set unlogged take long time  ("James Pang (chaolpan)" <chaolpan@cisco.com>)
Ответы RE: alter table xxx set unlogged take long time  ("James Pang (chaolpan)" <chaolpan@cisco.com>)
Список pgsql-performance


On Tue, Jul 26, 2022 at 4:53 AM James Pang (chaolpan) <chaolpan@cisco.com> wrote:

Hi ,

We have PG v13.6 in RHEL8.4, we try to set table unlogged before load data.  There are a lot of existing data in this table, when ‘alter table xxx  set unlogged’, we found it take long time and spend time on IO datafileread.  Is it expected?

 

Yes, the whole table needs to be written to WAL so this could take a long time for a large table

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

Предыдущее
От: "James Pang (chaolpan)"
Дата:
Сообщение: alter table xxx set unlogged take long time
Следующее
От: "James Pang (chaolpan)"
Дата:
Сообщение: RE: alter table xxx set unlogged take long time