From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Sabyasachi Mukherjee <mukherjee(dot)sabyasachi(at)outlook(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Observation with Postgres table size |
Date: | 2024-05-10 14:01:03 |
Message-ID: | af12004ceb46afee9d7787946fe11c8d2f0fb3a5.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Fri, 2024-05-10 at 13:57 +0000, Sabyasachi Mukherjee wrote:
> I am having an issue with the size of a Postgres DB table.
> The table have 17 columns. Out of them 5 jsonb columns. The table had 470000 rows when I checked from DBBeaver it showed the table size 34GB. After I deleted many rows from the table - it has currently 27038 rows. But the size of the table still shows 34GB.
> I was expecting the size of the DB table to be reduced.
> I event restarted the PG DB server service.
> I am using Postgres v16 .
> Can any body please advise, how to reduce the size of the table?
VACUUM (FULL) tablename;
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Alessandro Dentella | 2024-05-10 14:02:50 | cloudNativePg bootstrap from dump |
Previous Message | Scott Ribe | 2024-05-10 14:00:51 | Re: Observation with Postgres table size |