Re: does refreshing materialized view make the database bloat?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: does refreshing materialized view make the database bloat?
Дата
Msg-id CAKFQuwaqHqvC7PgsmyxHQ00Hc0NhtaKB8aaKDsttsvRssKx27Q@mail.gmail.com
обсуждение исходный текст
Ответ на does refreshing materialized view make the database bloat?  (jian he <jian.universality@gmail.com>)
Ответы Re: does refreshing materialized view make the database bloat?
Список pgsql-general
On Friday, January 13, 2023, jian he <jian.universality@gmail.com> wrote:

Once we have the diff table, we perform set-based DELETE and INSERT
operations against the materialized view, and discard both temporary tables.

Here the temporary tables are "discard" meaning the temporary tables are deleted and the temporary tables' spaces are reclaimed immediately?
Or the temporary tables are deleted and the spaces will be reclaimed by another mechanism? 

simplify:does refreshing materialized view make the database bloat.


The materialized view itself bloats.  The temp tables are removed immediately (the “drop table” docs don’t say this explicitly though it the most logical behavior and implied by the fact it takes an access exclusive lock).

David J.

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

Предыдущее
От: Ken Tanzer
Дата:
Сообщение: Re: Intervals and ISO 8601 duration
Следующее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: does refreshing materialized view make the database bloat?