Autovacuum, dead tuples and bloat

Поиск
Список
Период
Сортировка
Искать
От
Shenavai, Manuel
Тема
Autovacuum, dead tuples and bloat
Дата
Msg-id
AM9PR02MB7410603C5F467DED657D5330E8C82@AM9PR02MB7410.eurprd02.prod.outlook.com
Список
Дерево обсуждения
Autovacuum, dead tuples and bloat "Shenavai, Manuel" <manuel.shenavai@sap.com>
Re: Autovacuum, dead tuples and bloat Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
RE: Autovacuum, dead tuples and bloat "Shenavai, Manuel" <manuel.shenavai@sap.com>
Re: Autovacuum, dead tuples and bloat Adrian Klaver <adrian.klaver@aklaver.com>
RE: Autovacuum, dead tuples and bloat "Shenavai, Manuel" <manuel.shenavai@sap.com>
Re: Autovacuum, dead tuples and bloat Adrian Klaver <adrian.klaver@aklaver.com>
RE: Autovacuum, dead tuples and bloat "Shenavai, Manuel" <manuel.shenavai@sap.com>
Re: Autovacuum, dead tuples and bloat Ron Johnson <ronljohnsonjr@gmail.com>
Re: Autovacuum, dead tuples and bloat Adrian Klaver <adrian.klaver@aklaver.com>
RE: Autovacuum, dead tuples and bloat "Shenavai, Manuel" <manuel.shenavai@sap.com>
Re: Autovacuum, dead tuples and bloat Adrian Klaver <adrian.klaver@aklaver.com>
Re: Autovacuum, dead tuples and bloat Ron Johnson <ronljohnsonjr@gmail.com>

Hi everyone,

 

we can see in our database, that the DB is 200GB of size, with 99% bloat. After vacuum full the DB decreases to 2GB.

DB total size: 200GB

DB bloat: 198 GB

DB non-bloat: 2GB

 

We further see, that during bulk updates (i.e. a long running transaction), the DB is still growing, i.e. the size of the DB growth by +20GB after the bulk updates.

 

My assumption is, that after an autovacuum, the 99% bloat should be available for usage again. But the DB size would stay at 200GB. In our case, I would only expect a growth of the DB, if the bulk-updates exceed the current DB size (i.e. 220 GB).

 

How could I verify my assumption?

 

I think of two possibilities:

  1. My assumption is wrong and for some reason the dead tuples are not cleaned so that the space cannot be reused
  2. The bulk-update indeed exceeds the current DB size. (Then the growth is expected).

 

Can you help me to verify these assumptions? Are there any statistics available that could help me with my verification?

 

Thanks in advance &

Best regards,

Manuel

В списке pgsql-general по дате отправления
От: Rich Shepard
Дата:
Сообщение: Re: Transaction issue
От: Adrian Klaver
Дата:
FAQ