TOAST Table / Dead Tuples / Free Pages

From: "Shenavai, Manuel" <manuel(dot)shenavai(at)sap(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: TOAST Table / Dead Tuples / Free Pages
Date: 2024-06-13 07:55:02
Message-ID: AM9PR02MB7410F60E0B73567795B4D034E8C12@AM9PR02MB7410.eurprd02.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi everyone,

I created a simple scenario to understand the handling of TOASTs<https://www.postgresql.org/docs/current/storage-toast.html>: There is an empty database with a single table and record. The single record gets updated multiple times with 10MB (bytea column). I can see that the table/toasttable size is growing (500MB).

Now I tried to find a way to get the DB size down again (it should be around 10MB instead of 500MB). I don’t want to use VACUUM FULL due to the exclusive lock.

Is there any way to remove the dead tuples and free the pages?

Thanks in advance &
Best regards,
Manuel

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kashif Zeeshan 2024-06-13 08:08:49 Re: TOAST Table / Dead Tuples / Free Pages
Previous Message Laurenz Albe 2024-06-13 07:49:46 Re: DROP COLLATION vs pg_collation question